From d705f3226849f318514a44e87b58c8adcc91db7d Mon Sep 17 00:00:00 2001 From: Chris Penny Date: Wed, 22 Sep 2021 13:10:45 +1200 Subject: [PATCH] Fix broken unit test. Expect img-src for Youtube --- tests/PolicyTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/PolicyTest.php b/tests/PolicyTest.php index 7ca394e..09a3597 100644 --- a/tests/PolicyTest.php +++ b/tests/PolicyTest.php @@ -271,7 +271,7 @@ public function configure() [$request, $response] = $this->getRequestResponse(); $policy->applyTo($response); $this->assertEquals( - 'script-src www.youtube.com s.ytimg.com player.vimeo.com;frame-src *.youtube.com player.vimeo.com;child-src player.vimeo.com', + 'img-src *.ytimg.com;script-src www.youtube.com s.ytimg.com player.vimeo.com;frame-src *.youtube.com player.vimeo.com;child-src player.vimeo.com', $response->getHeader('content-security-policy') ); }