Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.3]
php: [8.3, 8.4, 8.5]
laravel: [11.*]
include:
- laravel: 11.*
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": "~8.3.1|~8.4.1",
"php": "~8.3.1|~8.4.1|~8.5.0",
"always-open/laravel-request-logger": "^3.0",
"illuminate/contracts": "~10.0||~11.0||~12.0",
"spatie/laravel-data": "~4.16",
Expand Down
2 changes: 0 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ parameters:
tmpDir: build/phpstan
checkOctaneCompatibility: true
checkModelProperties: true
ignoreErrors:
- '#Call to an undefined method Illuminate\\Http\\Client\\Response::getStatusCode\(\)#'
6 changes: 4 additions & 2 deletions tests/BaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ protected function setUp(): void
'--tag' => 'config',
]);

Http::preventStrayRequests();

$this->refreshApplication();

// After refreshApplication(): it builds a new app, which drops a fake
// registered earlier and lets an unmatched request reach the real API.
Http::preventStrayRequests();
}

protected function getFixtureJsonContent(string $name): string
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/BwtApiClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class BwtApiClientTest extends BaseTest
public function test_amazon_response()
{
Http::fake([
'https://bwt.com/api/123/results?limit=1&offset=0' => Http::response($this->getFixtureJsonContent('job_results.json'), 200),
'https://bwt.com/api/123/results?limit=1000&offset=0' => Http::response($this->getFixtureJsonContent('job_results.json'), 200),
]);

$client = new BwtApiClient;
Expand Down
Loading