Skip to content

Commit 4a77b8b

Browse files
committed
Run tests on Ubuntu 24.04 and drop roave/security-advisories dev dependency
1 parent 5909533 commit 4a77b8b

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
tests:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-24.04
1212
strategy:
1313
fail-fast: true
1414
matrix:

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"symfony/console": "^5.3|^6.0|^7.0"
3232
},
3333
"require-dev": {
34-
"roave/security-advisories": "dev-master",
3534
"orchestra/testbench": "^6.45|^7.44|^8.25|^9.3|^10.0",
3635
"mockery/mockery": "^1.3.3",
3736
"phpunit/phpunit": "^8.0|^9.5.8|^10.4|^11.5"

tests/ServiceProviderTest.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ public function test_route_macro_is_registered(): void
3030
$routes = Route::getRoutes();
3131

3232
$this->assertNotEmpty($routes->getRoutes());
33-
$this->assertEquals($route, $routes->getRoutes()[0]);
34-
$this->assertEquals(['GET', 'HEAD'], $route->methods);
35-
$this->assertEquals('/', $route->uri);
36-
$this->assertEquals(['uses' => '\Inertia\Controller@__invoke', 'controller' => '\Inertia\Controller'], $route->action);
37-
$this->assertEquals(['component' => 'User/Edit', 'props' => ['user' => ['name' => 'Jonathan']]], $route->defaults);
33+
34+
$inertiaRoute = collect($routes->getRoutes())->first(fn ($route) => $route->uri === '/');
35+
36+
$this->assertEquals($route, $inertiaRoute);
37+
$this->assertEquals(['GET', 'HEAD'], $inertiaRoute->methods);
38+
$this->assertEquals('/', $inertiaRoute->uri);
39+
$this->assertEquals(['uses' => '\Inertia\Controller@__invoke', 'controller' => '\Inertia\Controller'], $inertiaRoute->action);
40+
$this->assertEquals(['component' => 'User/Edit', 'props' => ['user' => ['name' => 'Jonathan']]], $inertiaRoute->defaults);
3841
}
3942
}

0 commit comments

Comments
 (0)