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', [