diff --git a/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php b/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php index 7ca6b3280941c539dc2119e04d2a99e791b3809b..0f4766a912456f9974606f4d1578ac8037a93776 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'); } }