Skip to content

Commit

Permalink
changed phpunit method call
Browse files Browse the repository at this point in the history
  • Loading branch information
jamielsharief committed Oct 20, 2019
1 parent b4265b3 commit 47db046
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/generator/mailer_test.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class %class%MailerTest extends OriginTestCase
{
$user = $this->User->find('first', ['conditions' => ['id' => 1000]]);
$message = (new %class%Mailer())->dispatch($user);
$this->assertContains('To: user@example.com',$message->header());
$this->assertContains('From: user@example.com',$message->header());
$this->assertContains('Hello user',$message->body());
$this->assertStringContainsString('To: user@example.com',$message->header());
$this->assertStringContainsString('From: user@example.com',$message->header());
$this->assertStringContainsString('Hello user',$message->body());
}
}

0 comments on commit 47db046

Please sign in to comment.