We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98239ad commit aa93ae2Copy full SHA for aa93ae2
1 file changed
tests/system/Test/FeatureTestTraitTest.php
@@ -11,9 +11,11 @@
11
12
namespace CodeIgniter\Test;
13
14
+use CodeIgniter\Config\Factories;
15
use CodeIgniter\Events\Events;
16
use CodeIgniter\Exceptions\PageNotFoundException;
17
use CodeIgniter\HTTP\Response;
18
+use Config\Routing;
19
use Config\Services;
20
21
/**
@@ -616,4 +618,15 @@ public function testSetupRequestBodyWithBody(): void
616
618
617
619
$this->assertSame('test', $request->getBody());
620
}
621
+
622
+ public function testAutoRoutingLegacy()
623
+ {
624
+ $config = config(Routing::class);
625
+ $config->autoRoute = true;
626
+ Factories::injectMock('config', Routing::class, $config);
627
628
+ $response = $this->get('home/index');
629
630
+ $response->assertOK();
631
+ }
632
0 commit comments