Skip to content

Commit 9932e3a

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/PushoverServiceProviderTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +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']);
2931

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

0 commit comments

Comments
 (0)