diff --git a/tests/TestCase/Network/Email/SmtpTransportTest.php b/tests/TestCase/Network/Email/SmtpTransportTest.php index 7887f53e328..d256c1b8311 100644 --- a/tests/TestCase/Network/Email/SmtpTransportTest.php +++ b/tests/TestCase/Network/Email/SmtpTransportTest.php @@ -357,14 +357,16 @@ public function testQuit() { * @return void */ public function testEmptyConfigArray() { - $expected = $this->SmtpTransport->config(array( + $this->SmtpTransport->config(array( 'client' => 'myhost.com', 'port' => 666 )); + $expected = $this->SmtpTransport->config(); $this->assertEquals(666, $expected['port']); - $result = $this->SmtpTransport->config(array()); + $this->SmtpTransport->config(array()); + $result = $this->SmtpTransport->config(); $this->assertEquals($expected, $result); }