File tree Expand file tree Collapse file tree 5 files changed +11
-12
lines changed Expand file tree Collapse file tree 5 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1919 matrix :
2020 php : [8.2, 8.3, 8.4]
2121 laravel : [11, 12]
22+ include :
23+ - php : 8.5
24+ laravel : 12
2225
2326 name : PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
2427
Original file line number Diff line number Diff line change 2424 },
2525 "require-dev" : {
2626 "mockery/mockery" : " ^1.6" ,
27- "orchestra/testbench" : " ^9.0|^10.0" ,
28- "phpstan/phpstan" : " ^1.10" ,
29- "phpunit/phpunit" : " ^11.3"
27+ "orchestra/testbench" : " ^9.15|^10.8" ,
28+ "phpstan/phpstan" : " ^1.10"
3029 },
3130 "autoload" : {
3231 "psr-4" : {
Original file line number Diff line number Diff line change 88use Laravel \Sanctum \Sanctum ;
99use Orchestra \Testbench \Concerns \WithWorkbench ;
1010use Orchestra \Testbench \TestCase ;
11+ use PHPUnit \Framework \Attributes \DataProvider ;
1112use Workbench \App \Models \User ;
1213use Workbench \Database \Factories \PersonalAccessTokenFactory ;
1314use Workbench \Database \Factories \UserFactory ;
@@ -56,9 +57,7 @@ public function test_can_authorize_valid_user_using_authorization_header()
5657 ->assertSee ($ user ->email );
5758 }
5859
59- /**
60- * @dataProvider sanctumGuardsDataProvider
61- */
60+ #[DataProvider('sanctumGuardsDataProvider ' )]
6261 public function test_can_authorize_valid_user_using_sanctum_acting_as ($ guard )
6362 {
6463 PersonalAccessTokenFactory::new ()->for (
Original file line number Diff line number Diff line change 88use Laravel \Sanctum \Sanctum ;
99use Orchestra \Testbench \Concerns \WithWorkbench ;
1010use Orchestra \Testbench \TestCase ;
11+ use PHPUnit \Framework \Attributes \DataProvider ;
1112use Workbench \App \Models \User ;
1213use Workbench \Database \Factories \UserFactory ;
1314
@@ -97,9 +98,7 @@ public function test_middleware_keeps_session_logged_in_when_sanctum_request_cha
9798 ->assertSee ($ user ->email );
9899 }
99100
100- /**
101- * @dataProvider sanctumGuardsDataProvider
102- */
101+ #[DataProvider('sanctumGuardsDataProvider ' )]
103102 public function test_middleware_can_deauthorize_valid_user_using_acting_as_after_password_change_from_sanctum_guard ($ guard )
104103 {
105104 $ user = UserFactory::new ()->create ();
Original file line number Diff line number Diff line change 1515use Mockery ;
1616use Orchestra \Testbench \Concerns \WithWorkbench ;
1717use Orchestra \Testbench \TestCase ;
18+ use PHPUnit \Framework \Attributes \DataProvider ;
1819use stdClass ;
1920use Workbench \App \Models \User ;
2021use Workbench \Database \Factories \PersonalAccessTokenFactory ;
@@ -221,9 +222,7 @@ public function test_authentication_with_token_fails_if_user_provider_is_invalid
221222 Event::assertNotDispatched (TokenAuthenticated::class);
222223 }
223224
224- /**
225- * @dataProvider invalidTokenDataProvider
226- */
225+ #[DataProvider('invalidTokenDataProvider ' )]
227226 public function test_authentication_with_token_fails_if_token_has_invalid_format ($ invalidToken )
228227 {
229228 $ factory = Mockery::mock (AuthFactory::class);
You can’t perform that action at this time.
0 commit comments