Skip to content

Commit d57ea39

Browse files
committed
wip
1 parent 4d25401 commit d57ea39

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.github/workflows/run-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ jobs:
1717
matrix:
1818
os: [ubuntu-latest, windows-latest]
1919
php: [8.1, 8.2, 8.3]
20-
laravel: ['11.*', '12.*']
20+
laravel: ['10.*', '11.*', '12.*']
2121
stability: [prefer-lowest, prefer-stable]
2222
include:
23+
- laravel: 10.*
24+
testbench: 8.*
2325
- laravel: 11.*
2426
testbench: ^9.0
2527
- laravel: 12.*

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,20 @@
1818
"require": {
1919
"php": "^8.1",
2020
"coderflexx/laravel-presenter": "^2.0",
21-
"illuminate/contracts": "^11.0|^12.0",
21+
"illuminate/contracts": "^9.0|^10.0|^11.0|^12.0",
2222
"jaybizzle/crawler-detect": "^1.2",
2323
"spatie/laravel-package-tools": "^1.9.2"
2424
},
2525
"require-dev": {
26+
"laravel/pint": "^1.0",
2627
"nunomaduro/collision": "^7.0|^8.0",
27-
"nunomaduro/larastan": "^1.0|^2.0",
28-
"orchestra/testbench": "^9.0|^10.0",
29-
"pestphp/pest": "^1.22|^2.34|^3.7",
28+
"nunomaduro/larastan": "^2.0.1|^3.0",
29+
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
3030
"phpstan/extension-installer": "^1.1",
3131
"phpstan/phpstan-deprecation-rules": "^1.0|^2.0",
3232
"phpstan/phpstan-phpunit": "^1.0|^2.0",
33-
"phpunit/phpunit": "^9.5|^10.0|^11.5.3"
33+
"phpunit/phpunit": "^9.5|^10.0|^11.0",
34+
"pestphp/pest": "^1.21|^2.0|^3.7"
3435
},
3536
"autoload": {
3637
"psr-4": {

tests/Feature/Visits/PopularityTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@
143143
Carbon::setTestNow();
144144
$posts->last()->visit();
145145

146-
$posts = Post::popularLastMonth()->get();
146+
$popularPosts = Post::popularLastMonth()->get();
147147

148-
expect($posts->count())->toBe(1);
148+
expect($popularPosts->count())->toBe(1);
149149
});
150150

151151
it('gets popular records by this year', function () {

0 commit comments

Comments
 (0)