X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/49386b42dae9ccd3d446d1819141ddd56676e3f7..refs/pull/3139/head:/tests/TestEmailTest.php diff --git a/tests/TestEmailTest.php b/tests/TestEmailTest.php index 76ff322ff..e0350371a 100644 --- a/tests/TestEmailTest.php +++ b/tests/TestEmailTest.php @@ -1,4 +1,6 @@ -asAdmin()->get('/settings/maintenance'); @@ -33,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'); @@ -57,6 +58,4 @@ class TestEmailTest extends TestCase $sendReq = $this->actingAs($user)->post('/settings/maintenance/send-test-email'); Notification::assertSentTo($user, TestEmail::class); } - - -} \ No newline at end of file +}