Skip to content
Permalink
Browse files

Fix test case.

  • Loading branch information...
dereuromark committed Dec 27, 2016
1 parent bdba6e9 commit 8787c57284c2926ed6a850a48793ec2dba20ebe5
Showing with 4 additions and 4 deletions.
  1. +4 −4 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);

0 comments on commit 8787c57

Please sign in to comment.
You can’t perform that action at this time.