Skip to content

Commit 3ff1d84

Browse files
committed
Fix service provider test, adjust when tests are run
1 parent 78e31bd commit 3ff1d84

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ trim_trailing_whitespace = true
1313

1414
[*.md]
1515
trim_trailing_whitespace = false
16+
17+
[*.{yaml,yml}]
18+
indent_size = 2

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Tests
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
branches:
6+
- master
7+
pull_request:
68

79
jobs:
810
test:
@@ -13,8 +15,8 @@ jobs:
1315
strategy:
1416
fail-fast: true
1517
matrix:
16-
php: [8.4, 8.3, 8.2, 8.1]
17-
laravel: ['8.*', '9.*', '10.*', '11.*', '12.*']
18+
php: [ 8.4, 8.3, 8.2, 8.1 ]
19+
laravel: [ '8.*', '9.*', '10.*', '11.*', '12.*' ]
1820
include:
1921
- laravel: 10.*
2022
testbench: 8.*

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')->zeroOrMoreTimes()->andReturn('array');
30-
Config::shouldReceive('get')->with('database.connections.array')->zeroOrMoreTimes()->andReturn(['driver' => 'array']);
29+
Config::shouldReceive('get')->with('database.default')->andReturn('array');
30+
Config::shouldReceive('get')->with('database.connections.array')->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)