From c7cb22e72e8cc1cfbd0b838ce123ba9b5c8d0099 Mon Sep 17 00:00:00 2001
From: Ghislain Loas <ghislo@sandbox.pergame.net>
Date: Fri, 6 Feb 2015 11:55:48 +0100
Subject: [PATCH] STABLE fix test failure du tu https send by cache server on
 youtube call

---
 .../modules/opac/controllers/NoticeAjaxControllerTest.php       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php b/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php
index 829df2d17f6..036be4be341 100644
--- a/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php
+++ b/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php
@@ -886,7 +886,7 @@ class NoticeAjaxControllerVideoMorceauTest extends AbstractControllerTestCase {
 	 * @test
 	 */
 	public function responseShouldContainsPlayer() {
-		$this->assertXPath('//param[@name="movie"][@value="http://youtube.googleapis.com/v/axb2sHpGwHQ&source=uds&autoplay=1"]');
+		$this->assertXPath('//param[@name="movie"][contains(@value,"//youtube.googleapis.com/v/axb2sHpGwHQ&source=uds&autoplay=1")]');
 	}
 
 
-- 
GitLab