From 7bf3fe034f140a35ce91d4db7a895bb36c3fec2b Mon Sep 17 00:00:00 2001
From: gloas <gloas@afi-sa.fr>
Date: Tue, 3 Apr 2018 13:47:34 +0200
Subject: [PATCH] dev #68179 fix test failure

---
 library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php b/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php
index 7ca6b328094..0f4766a9124 100644
--- a/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php
+++ b/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php
@@ -65,7 +65,7 @@ class StoryPlayRSsoTest extends StoryPlayRActivatedTestCase {
 
     /** @test */
   public function scriptShouldContainsCheckUrl() {
-    $this->assertXPathContentContains('//script' , '&check_url=http://localhost/ghislo/StoryPlayR_Plugin/auth/validate', $this->_response->getBody());
+    $this->assertXPathContentContains('//script[contains(text(), "&check_url=")]' , '/StoryPlayR_Plugin/auth/validate');
   }
 }
 
-- 
GitLab