Skip to content

Commit 320f725

Browse files
committed
assertIsString
1 parent f104c0a commit 320f725

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/system/HTTP/ContentSecurityPolicyTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,7 @@ public function testDisabledScriptNonce(): void
744744
$header = $this->response->getHeaderLine('Content-Security-Policy');
745745
$body = $this->response->getBody();
746746

747+
$this->assertIsString($body);
747748
$this->assertStringNotContainsString('nonce=', $body);
748749

749750
$this->assertStringContainsString("script-src 'self' cdn.cloudy.com", $header);
@@ -842,6 +843,7 @@ public function testDisabledStyleNonce(): void
842843
$header = $this->response->getHeaderLine('Content-Security-Policy');
843844
$body = $this->response->getBody();
844845

846+
$this->assertIsString($body);
845847
$this->assertStringNotContainsString('nonce=', $body);
846848

847849
$this->assertStringContainsString("style-src 'self' cdn.cloudy.com", $header);

0 commit comments

Comments
 (0)