Fake notifications

This commit is contained in:
James Brooks
2017-01-04 21:13:01 +00:00
parent a38acf190c
commit 1e9161cdaf
+6
View File
@@ -11,6 +11,8 @@
namespace CachetHQ\Tests\Cachet\Api; namespace CachetHQ\Tests\Cachet\Api;
use Illuminate\Support\Facades\Notification;
/** /**
* This is the subscriber test class. * This is the subscriber test class.
* *
@@ -41,6 +43,8 @@ class SubscriberTest extends AbstractApiTestCase
{ {
$this->beUser(); $this->beUser();
Notification::fake();
$this->expectsEvents('CachetHQ\Cachet\Bus\Events\Subscriber\SubscriberHasSubscribedEvent'); $this->expectsEvents('CachetHQ\Cachet\Bus\Events\Subscriber\SubscriberHasSubscribedEvent');
$this->post('/api/v1/subscribers', [ $this->post('/api/v1/subscribers', [
@@ -55,6 +59,8 @@ class SubscriberTest extends AbstractApiTestCase
{ {
$this->beUser(); $this->beUser();
Notification::fake();
$this->expectsEvents('CachetHQ\Cachet\Bus\Events\Subscriber\SubscriberHasSubscribedEvent'); $this->expectsEvents('CachetHQ\Cachet\Bus\Events\Subscriber\SubscriberHasSubscribedEvent');
$this->post('/api/v1/subscribers', [ $this->post('/api/v1/subscribers', [