Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jan 23, 2022
1 parent cd5944d commit 13fe83d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Mail/MailerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use Fusio\Impl\Tests\Fixture;
use PSX\Framework\Test\ControllerDbTestCase;
use PSX\Framework\Test\Environment;
use Symfony\Component\Mailer\Mailer;

/**
* MailerTest
Expand All @@ -52,7 +53,7 @@ public function testMail()
$sender->expects($this->once())
->method('accept')
->with($this->callback(function($dispatcher){
$this->assertInstanceOf(\Swift_Mailer::class, $dispatcher);
$this->assertInstanceOf(Mailer::class, $dispatcher);

return true;
}))
Expand All @@ -61,7 +62,7 @@ public function testMail()
$sender->expects($this->once())
->method('send')
->with($this->callback(function($dispatcher){
$this->assertInstanceOf(\Swift_Mailer::class, $dispatcher);
$this->assertInstanceOf(Mailer::class, $dispatcher);

return true;
}), $this->callback(function($message){
Expand Down

0 comments on commit 13fe83d

Please sign in to comment.