Skip to content
Closed
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
15 changes: 13 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: true
matrix:
php: [7.2, 7.3, 7.4, "8.0", 8.1, 8.2, 8.3]
laravel: [6, 7, 8, 9, 10]
laravel: [6, 7, 8, 9, 10, 11]
stability: ["prefer-lowest", "prefer-stable"]
exclude:
- php: 7.2
Expand All @@ -22,20 +22,30 @@ jobs:
laravel: 9
- php: 7.2
laravel: 10
- php: 7.2
laravel: 11
- php: 7.3
laravel: 9
- php: 7.3
laravel: 10
- php: 7.3
laravel: 11
- php: 7.4
laravel: 9
- php: 7.4
laravel: 10
- php: 7.4
laravel: 11
- php: '8.0'
laravel: 10
- php: '8.0'
laravel: 11
- php: 8.1
laravel: 6
- php: 8.1
laravel: 7
- php: 8.1
laravel: 11
- php: 8.2
laravel: 6
- php: 8.2
Expand Down Expand Up @@ -79,6 +89,7 @@ jobs:
timeout_minutes: 5
max_attempts: 5
command: |
composer require phpunit/phpunit:^10.5.0 --dev --${{ matrix.stability }} --no-update --no-interaction
composer require nesbot/carbon:^2.62.1 --dev --${{ matrix.stability }} --no-update --no-interaction
if: matrix.php >= 8.2 && matrix.stability == 'prefer-lowest'

Expand All @@ -97,4 +108,4 @@ jobs:
command: composer update --${{ matrix.stability }} --no-interaction

- name: Execute tests
run: vendor/bin/phpunit --verbose
run: vendor/bin/phpunit
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
"require": {
"php": "^7.2|~8.0.0|~8.1.0|~8.2.0|~8.3.0",
"ext-json": "*",
"laravel/framework": "^6.0|^7.0|^8.74|^9.0|^10.0"
"laravel/framework": "^6.0|^7.0|^8.74|^9.0|^10.0|^11.0"
},
"require-dev": {
"roave/security-advisories": "dev-master",
"orchestra/testbench": "^4.0|^5.0|^6.4|^7.0|^8.0",
"orchestra/testbench": "^4.0|^5.0|^6.4|^7.0|^8.0|^9.0",
"mockery/mockery": "^1.3.3",
"phpunit/phpunit": "^8.0|^9.5.8"
"phpunit/phpunit": "^8.0|^9.5.8|^10.5"
},
"suggest": {
"ext-pcntl": "Recommended when running the Inertia SSR server via the `inertia:start-ssr` artisan command."
Expand Down
4 changes: 2 additions & 2 deletions tests/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public function test_lazy_props_are_not_included_by_default(): void
$page = $response->getData();

$this->assertSame([], $page->props->users);
$this->assertObjectNotHasAttribute('lazy', $page->props);
$this->assertFalse(property_exists($page->props, 'lazy'));
}

public function test_lazy_props_are_included_in_partial_reload(): void
Expand All @@ -287,7 +287,7 @@ public function test_lazy_props_are_included_in_partial_reload(): void
$response = $response->toResponse($request);
$page = $response->getData();

$this->assertObjectNotHasAttribute('users', $page->props);
$this->assertFalse(property_exists($page->props, 'users'));
$this->assertSame('A lazy value', $page->props->lazy);
}

Expand Down