Browse Source

Don't use deprecated method

Mark Story 8 years ago
parent
commit
b3dd206b42
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/Mailer/EmailTest.php

+ 1 - 1
tests/TestCase/Mailer/EmailTest.php

@@ -280,7 +280,7 @@ class EmailTest extends TestCase
      */
     public function testToUnderscoreDomain()
     {
-        $result = $this->Email->to('cake@cake_php.org');
+        $result = $this->Email->setTo('cake@cake_php.org');
         $expected = ['cake@cake_php.org' => 'cake@cake_php.org'];
         $this->assertSame($expected, $this->Email->to());
         $this->assertSame($this->Email, $result);