Fake notifications
This commit is contained in:
@@ -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', [
|
||||
|
||||
Reference in New Issue
Block a user