From 8787c57284c2926ed6a850a48793ec2dba20ebe5 Mon Sep 17 00:00:00 2001 From: dereuromark Date: Tue, 27 Dec 2016 12:13:24 +0100 Subject: [PATCH] Fix test case. --- tests/TestCase/Mailer/MailerTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestCase/Mailer/MailerTest.php b/tests/TestCase/Mailer/MailerTest.php index 42d1bc50e97..6ef57e3a32e 100644 --- a/tests/TestCase/Mailer/MailerTest.php +++ b/tests/TestCase/Mailer/MailerTest.php @@ -84,16 +84,16 @@ public function testProxies() public function testSet() { - $email = $this->getMockForEmail('viewVars'); + $email = $this->getMockForEmail('setViewVars'); $email->expects($this->once()) - ->method('viewVars') + ->method('setViewVars') ->with(['key' => 'value']); $result = (new TestMailer($email))->set('key', 'value'); $this->assertInstanceOf('TestApp\Mailer\TestMailer', $result); - $email = $this->getMockForEmail('viewVars'); + $email = $this->getMockForEmail('setViewVars'); $email->expects($this->once()) - ->method('viewVars') + ->method('setViewVars') ->with(['key' => 'value']); $result = (new TestMailer($email))->set(['key' => 'value']); $this->assertInstanceOf('TestApp\Mailer\TestMailer', $result);