Skip to content

Commit 5bad5ff

Browse files
committed
Fix service provider test
1 parent 9932e3a commit 5bad5ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PushoverServiceProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public function setUp(): void
2626
public function it_gives_an_instantiated_pushover_object_when_the_channel_asks_for_it(): void
2727
{
2828
Config::shouldReceive('get')->with('services.pushover.token', null)->once()->andReturn('test-token');
29-
Config::shouldReceive('get')->with('database.default')->once()->andReturn('array');
30-
Config::shouldReceive('get')->with('database.connections.array')->once()->andReturn(['driver' => 'array']);
29+
Config::shouldReceive('get')->with('database.default')->zeroOrMoreTimes()->andReturn('array');
30+
Config::shouldReceive('get')->with('database.connections.array')->zeroOrMoreTimes()->andReturn(['driver' => 'array']);
3131

3232
$this->app->when(PushoverChannel::class)->needs(Pushover::class)->give(function () {
3333
return new Pushover(Mockery::mock(HttpClient::class), 'test-token');

0 commit comments

Comments
 (0)