From 60d5e76ed4c0fc1e8a3be5241cea86c994a969c3 Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 23 Sep 2022 11:58:10 +0900 Subject: [PATCH] refactor: run rector and php-cs-fixer --- tests/system/HTTP/ContentSecurityPolicyTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/system/HTTP/ContentSecurityPolicyTest.php b/tests/system/HTTP/ContentSecurityPolicyTest.php index 9110ec27a9..19d720d9f4 100644 --- a/tests/system/HTTP/ContentSecurityPolicyTest.php +++ b/tests/system/HTTP/ContentSecurityPolicyTest.php @@ -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'); }