File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212namespace CodeIgniter \HTTP ;
1313
1414use CodeIgniter \Test \CIUnitTestCase ;
15+ use CodeIgniter \Test \TestResponse ;
1516use Config \App ;
1617use Config \ContentSecurityPolicy as CSPConfig ;
1718
@@ -534,7 +535,7 @@ public function testBodyScriptNonceDisableAutoNonce()
534535
535536 $ this ->assertStringContainsString ('{csp-script-nonce} ' , $ response ->getBody ());
536537
537- $ result = new \ CodeIgniter \ Test \ TestResponse ($ response );
538+ $ result = new TestResponse ($ response );
538539 $ result ->assertHeader ('Content-Security-Policy ' );
539540 }
540541
@@ -553,7 +554,7 @@ public function testBodyStyleNonceDisableAutoNonce()
553554
554555 $ this ->assertStringContainsString ('{csp-style-nonce} ' , $ response ->getBody ());
555556
556- $ result = new \ CodeIgniter \ Test \ TestResponse ($ response );
557+ $ result = new TestResponse ($ response );
557558 $ result ->assertHeader ('Content-Security-Policy ' );
558559 }
559560
You can’t perform that action at this time.
0 commit comments