File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1111use Laragear \Preload \Preloader ;
1212use Laragear \Preload \PreloadServiceProvider ;
1313
14+ use Orchestra \Testbench \Attributes \DefineEnvironment ;
1415use function get_class ;
1516use function method_exists ;
1617
@@ -49,9 +50,7 @@ protected function usesProductionEnvironment(Application $app): void
4950 $ app ['env ' ] = 'production ' ;
5051 }
5152
52- /**
53- * @define-env usesProductionEnvironment
54- */
53+ #[DefineEnvironment('usesProductionEnvironment ' )]
5554 public function test_registers_global_middleware_on_production (): void
5655 {
5756 $ http = $ this ->app ->make (Kernel::class);
@@ -68,9 +67,7 @@ protected function setConfigEnableTrue(Application $app): void
6867 $ app ->make ('config ' )->set ('preload.enabled ' , true );
6968 }
7069
71- /**
72- * @define-env setConfigEnableTrue
73- */
70+ #[DefineEnvironment('setConfigEnableTrue ' )]
7471 public function test_registers_global_middleware_when_config_is_true (): void
7572 {
7673 $ http = $ this ->app ->make (Kernel::class);
You can’t perform that action at this time.
0 commit comments