From 1e9161cdaffe431850ce58feea6b72670ef891ab Mon Sep 17 00:00:00 2001 From: James Brooks Date: Wed, 4 Jan 2017 21:13:01 +0000 Subject: [PATCH] Fake notifications --- tests/Api/SubscriberTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/Api/SubscriberTest.php b/tests/Api/SubscriberTest.php index b53d9aef..22fd9155 100644 --- a/tests/Api/SubscriberTest.php +++ b/tests/Api/SubscriberTest.php @@ -11,6 +11,8 @@ namespace CachetHQ\Tests\Cachet\Api; +use Illuminate\Support\Facades\Notification; + /** * This is the subscriber test class. * @@ -41,6 +43,8 @@ class SubscriberTest extends AbstractApiTestCase { $this->beUser(); + Notification::fake(); + $this->expectsEvents('CachetHQ\Cachet\Bus\Events\Subscriber\SubscriberHasSubscribedEvent'); $this->post('/api/v1/subscribers', [ @@ -55,6 +59,8 @@ class SubscriberTest extends AbstractApiTestCase { $this->beUser(); + Notification::fake(); + $this->expectsEvents('CachetHQ\Cachet\Bus\Events\Subscriber\SubscriberHasSubscribedEvent'); $this->post('/api/v1/subscribers', [