diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 8349d52..aa56923 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,14 +9,14 @@ jobs: fail-fast: false matrix: php: [8.2, 8.3, 8.4] - laravel: [10.*, 11.*] + laravel: [11.*, 12.*] dependency-version: [prefer-stable] os: [ubuntu-latest] include: - - laravel: 10.* - testbench: 8.* - laravel: 11.* testbench: 9.* + - laravel: 12.* + testbench: 10.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} diff --git a/composer.json b/composer.json index 983bf15..69fe6af 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "require": { "php": "^8.2||^8.3||^8.4", "guzzlehttp/guzzle": "^7.8", - "illuminate/support": "^10.0|^11.0", + "illuminate/support": "^11.0|^12.0", "nesbot/carbon": "^2.71|^3.0", "spatie/crawler": "^8.0.1", "spatie/laravel-package-tools": "^1.16.1", @@ -26,8 +26,8 @@ }, "require-dev": { "mockery/mockery": "^1.6.6", - "orchestra/testbench": "^8.14|^9.0", - "pestphp/pest": "^2.24", + "orchestra/testbench": "^9.0|^10.0", + "pestphp/pest": "^3.7.4", "spatie/pest-plugin-snapshots": "^2.1", "spatie/phpunit-snapshot-assertions": "^5.1.2", "spatie/temporary-directory": "^2.2" @@ -60,4 +60,4 @@ "scripts": { "test": "vendor/bin/pest" } -} +} \ No newline at end of file diff --git a/tests/UrlTest.php b/tests/UrlTest.php index 8b422e1..4f58ae9 100755 --- a/tests/UrlTest.php +++ b/tests/UrlTest.php @@ -36,20 +36,20 @@ }); test('priority can be set') - ->tap(fn () => $this->url->setPriority(0.1)) + ->defer(fn () => $this->url->setPriority(0.1)) ->expect(fn () => $this->url->priority) ->toEqual(0.1); test('priority is clamped') - ->tap(fn () => $this->url->setPriority(-0.1)) + ->defer(fn () => $this->url->setPriority(-0.1)) ->expect(fn () => $this->url->priority) ->toEqual(0) - ->tap(fn () => $this->url->setPriority(1.1)) + ->defer(fn () => $this->url->setPriority(1.1)) ->expect(fn () => $this->url->priority) ->toEqual(1); test('change frequency can be set') - ->tap(fn () => $this->url->setChangeFrequency(Url::CHANGE_FREQUENCY_YEARLY)) + ->defer(fn () => $this->url->setChangeFrequency(Url::CHANGE_FREQUENCY_YEARLY)) ->expect(fn () => $this->url->changeFrequency) ->toEqual(Url::CHANGE_FREQUENCY_YEARLY);