File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments