Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nagi1 committed Sep 8, 2024
1 parent a589be8 commit f8700d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ jobs:
run: composer show -D

- name: Execute tests
run: vendor/bin/pest -p
run: composer prepare && vendor/bin/pest -p
11 changes: 3 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@
},
"autoload": {
"psr-4": {
"Nagi\\LaravelNewrelicLogApi\\": "src/",
"Nagi\\LaravelNewrelicLogApi\\Database\\Factories\\": "database/factories/"
"Nagi\\LaravelNewrelicLogApi\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Nagi\\LaravelNewrelicLogApi\\Tests\\": "tests/",
"Workbench\\App\\": "workbench/app/"
"Nagi\\LaravelNewrelicLogApi\\Tests\\": "tests/"
}
},
"scripts": {
Expand Down Expand Up @@ -69,10 +67,7 @@
"laravel": {
"providers": [
"Nagi\\LaravelNewrelicLogApi\\LaravelNewrelicLogApiServiceProvider"
],
"aliases": {
"LaravelNewrelicLogApi": "Nagi\\LaravelNewrelicLogApi\\Facades\\LaravelNewrelicLogApi"
}
]
}
},
"minimum-stability": "dev",
Expand Down
3 changes: 3 additions & 0 deletions tests/FeatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
$this->partialMock(Client::class, function (MockInterface $mock) {
$mock->shouldReceive('send')->andReturn(new Response(new Psr7Response(200, [], '')));
});

// make sure the queue is sync
config(['queue.default' => 'sync']);
});

afterEach(function () {
Expand Down

0 comments on commit f8700d4

Please sign in to comment.