We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 632baae commit 81f370aCopy full SHA for 81f370a
tests/Channels/NotifyChannelTest.php
@@ -29,11 +29,9 @@
29
use Illuminate\Support\Str;
30
31
it('can report', function (): void {
32
- $mockClient = Mockery::mock(Client::class);
33
- $mockClient->allows('send')->andReturn('report');
34
-
35
- expect(new BarkChannel($mockClient))
36
- ->report('report')->toBe('report');
+ expect(new BarkChannel(
+ Mockery::spy(Client::class)->allows('send')->once()->getMock()
+ ))->report('report')->toBeNull();
37
})->group(__DIR__, __FILE__);
38
39
it('can create message', function (): void {
0 commit comments