File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 3333use Config \Logger ;
3434use Config \Modules ;
3535use Config \Routing ;
36+ use Config \Security as SecurityConfig ;
3637use Config \Services ;
3738use Config \Session as SessionConfig ;
3839use Kint ;
@@ -336,7 +337,7 @@ public function testAppTimezone()
336337
337338 public function testCSRFToken ()
338339 {
339- Services::injectMock ('security ' , new MockSecurity (new App ()));
340+ Services::injectMock ('security ' , new MockSecurity (new SecurityConfig ()));
340341
341342 $ this ->assertSame ('csrf_test_name ' , csrf_token ());
342343 }
Original file line number Diff line number Diff line change 1515use CodeIgniter \Config \Services ;
1616use CodeIgniter \Test \CIUnitTestCase ;
1717use CodeIgniter \Test \Mock \MockSecurity ;
18- use Config \App ;
18+ use Config \Security as SecurityConfig ;
1919use ReflectionClass ;
2020use ReflectionMethod ;
2121
@@ -31,7 +31,7 @@ final class CommonSingleServiceTest extends CIUnitTestCase
3131 */
3232 public function testSingleServiceWithNoParamsSupplied (string $ service ): void
3333 {
34- Services::injectMock ('security ' , new MockSecurity (new App ()));
34+ Services::injectMock ('security ' , new MockSecurity (new SecurityConfig ()));
3535
3636 $ service1 = single_service ($ service );
3737 $ service2 = single_service ($ service );
You can’t perform that action at this time.
0 commit comments