X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/0155525945bb030ae2265279dca8014c8cdcb2af..refs/pull/3245/head:/tests/TestEmailTest.php diff --git a/tests/TestEmailTest.php b/tests/TestEmailTest.php index 0a2091fe3..e0350371a 100644 --- a/tests/TestEmailTest.php +++ b/tests/TestEmailTest.php @@ -34,7 +34,7 @@ class TestEmailTest extends TestCase $this->app[Dispatcher::class] = $mockDispatcher; $exception = new \Exception('A random error occurred when testing an email'); - $mockDispatcher->shouldReceive('send')->andThrow($exception); + $mockDispatcher->shouldReceive('sendNow')->andThrow($exception); $admin = $this->getAdmin(); $sendReq = $this->actingAs($admin)->post('/settings/maintenance/send-test-email');