From 5c13fdb44b1fed437478b20b15c26e78e9f4a182 Mon Sep 17 00:00:00 2001
From: llaffont <llaffont@afi-sa.fr>
Date: Mon, 31 Aug 2015 15:24:47 +0200
Subject: [PATCH] Fix youtube test

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

diff --git a/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php b/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php
index c0d9f3b2a2a..762e19144c0 100644
--- a/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php
+++ b/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php
@@ -1077,7 +1077,8 @@ class NoticeAjaxControllerVideoMorceauTest extends AbstractControllerTestCase {
    * @test
    */
   public function responseShouldContainsPlayer() {
-    $this->assertXPath('//param[@name="movie"][contains(@value,"//youtube.googleapis.com/v/axb2sHpGwHQ&source=uds&autoplay=1")]');
+    $this->assertXPath('//param[@name="movie"][contains(@value,"//youtube.googleapis.com/v/u-9koO1cQEI&source=uds&autoplay=1")]',
+                       $this->_response->getBody());
   }
 
 
-- 
GitLab