diff --git a/tests/Channels/NotifyChannelTest.php b/tests/Channels/NotifyChannelTest.php index 613931f..d01a1a2 100644 --- a/tests/Channels/NotifyChannelTest.php +++ b/tests/Channels/NotifyChannelTest.php @@ -29,11 +29,9 @@ use Illuminate\Support\Str; it('can report', function (): void { - $mockClient = Mockery::mock(Client::class); - $mockClient->allows('send')->andReturn('report'); - - expect(new BarkChannel($mockClient)) - ->report('report')->toBe('report'); + expect(new BarkChannel( + Mockery::spy(Client::class)->allows('send')->once()->getMock() + ))->report('report')->toBeNull(); })->group(__DIR__, __FILE__); it('can create message', function (): void {