mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
refactor: run rector and php-cs-fixer
This commit is contained in:
parent
21830227b3
commit
60d5e76ed4
@ -12,6 +12,7 @@
|
||||
namespace CodeIgniter\HTTP;
|
||||
|
||||
use CodeIgniter\Test\CIUnitTestCase;
|
||||
use CodeIgniter\Test\TestResponse;
|
||||
use Config\App;
|
||||
use Config\ContentSecurityPolicy as CSPConfig;
|
||||
|
||||
@ -534,7 +535,7 @@ final class ContentSecurityPolicyTest extends CIUnitTestCase
|
||||
|
||||
$this->assertStringContainsString('{csp-script-nonce}', $response->getBody());
|
||||
|
||||
$result = new \CodeIgniter\Test\TestResponse($response);
|
||||
$result = new TestResponse($response);
|
||||
$result->assertHeader('Content-Security-Policy');
|
||||
}
|
||||
|
||||
@ -553,7 +554,7 @@ final class ContentSecurityPolicyTest extends CIUnitTestCase
|
||||
|
||||
$this->assertStringContainsString('{csp-style-nonce}', $response->getBody());
|
||||
|
||||
$result = new \CodeIgniter\Test\TestResponse($response);
|
||||
$result = new TestResponse($response);
|
||||
$result->assertHeader('Content-Security-Policy');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user