Skip to content

Commit dbad51e

Browse files
committed
code fixes
1 parent d712444 commit dbad51e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/system/CodeIgniterTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
*/
4545
#[BackupGlobals(true)]
4646
#[Group('Others')]
47-
// #[RunTestsInSeparateProcesses]
47+
#[RunTestsInSeparateProcesses]
4848
final class CodeIgniterTest extends CIUnitTestCase
4949
{
5050
private CodeIgniter $codeigniter;
@@ -1196,7 +1196,7 @@ public function testRouteAttributesDisabledInConfig(): void
11961196
Services::superglobals()->setServer('REQUEST_METHOD', 'GET');
11971197

11981198
// Disable route attributes in config BEFORE creating CodeIgniter instance
1199-
$routing = config('routing');
1199+
$routing = config('routing');
12001200
$routing->useControllerAttributes = false;
12011201
Factories::injectMock('config', 'routing', $routing);
12021202

@@ -1216,14 +1216,13 @@ public function testRouteAttributesDisabledInConfig(): void
12161216
$router = service('router', $routes, service('incomingrequest'));
12171217
Services::injectMock('router', $router);
12181218

1219-
$config = new App();
1219+
$config = new App();
12201220
$codeigniter = new MockCodeIgniter($config);
12211221

12221222
ob_start();
12231223
$codeigniter->run($routes);
12241224
$output = ob_get_clean();
12251225

1226-
12271226
// When useRouteAttributes is false, the filter attributes should NOT be processed
12281227
// So the filter should not have run
12291228
$this->assertStringNotContainsString('before_filter_ran', (string) $output);

0 commit comments

Comments
 (0)