Renamed the method fastSend to deliver.

This commit is contained in:
Juan Basso 2011-04-19 17:07:38 -04:00
parent 8443b66986
commit 98afe4e09b
2 changed files with 5 additions and 5 deletions

View file

@ -928,7 +928,7 @@ class CakeEmail {
* @param boolean $send Send the email or just return the instance pre-configured
* @return object Instance of CakeEmail
*/
public static function fastSend($to = null, $subject = null, $message = null, $transportConfig = 'fast', $send = true) {
public static function deliver($to = null, $subject = null, $message = null, $transportConfig = 'fast', $send = true) {
$class = __CLASS__;
$instance = new $class();

View file

@ -629,12 +629,12 @@ class CakeEmailTest extends CakeTestCase {
}
/**
* testFastSend method
* testDeliver method
*
* @return void
*/
public function testFastSend() {
$instance = CakeEmail::fastSend('all@cakephp.org', 'About', 'Everything ok', array('from' => 'root@cakephp.org'), false);
public function testDeliver() {
$instance = CakeEmail::deliver('all@cakephp.org', 'About', 'Everything ok', array('from' => 'root@cakephp.org'), false);
$this->assertIsA($instance, 'CakeEmail');
$this->assertIdentical($instance->to(), array('all@cakephp.org' => 'all@cakephp.org'));
$this->assertIdentical($instance->subject(), 'About');
@ -649,7 +649,7 @@ class CakeEmailTest extends CakeTestCase {
'viewVars' => array('value' => 123),
'cc' => array('cake@cakephp.org' => 'Myself')
);
$instance = CakeEmail::fastSend(null, null, array('name' => 'CakePHP'), $config, false);
$instance = CakeEmail::deliver(null, null, array('name' => 'CakePHP'), $config, false);
$this->assertIdentical($instance->from(), array('cake@cakephp.org' => 'cake@cakephp.org'));
$this->assertIdentical($instance->to(), array('debug@cakephp.org' => 'debug@cakephp.org'));
$this->assertIdentical($instance->subject(), 'Update ok');