Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix test case.
  • Loading branch information
dereuromark committed Jan 5, 2017
1 parent bdba6e9 commit 8787c57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/TestCase/Mailer/MailerTest.php
Expand Up @@ -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);
Expand Down

0 comments on commit 8787c57

Please sign in to comment.