diff options
Diffstat (limited to 'test/classes/Controllers/JavaScriptMessagesControllerTest.php')
-rw-r--r-- | test/classes/Controllers/JavaScriptMessagesControllerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/classes/Controllers/JavaScriptMessagesControllerTest.php b/test/classes/Controllers/JavaScriptMessagesControllerTest.php index b8d3f2cd88..49097f0c2b 100644 --- a/test/classes/Controllers/JavaScriptMessagesControllerTest.php +++ b/test/classes/Controllers/JavaScriptMessagesControllerTest.php @@ -27,10 +27,10 @@ class JavaScriptMessagesControllerTest extends TestCase ob_end_clean(); $this->assertIsString($actual); - $this->assertStringStartsWith('var Messages = {', $actual); + $this->assertStringStartsWith('window.Messages = {', $actual); $this->assertStringEndsWith('};', $actual); - $json = substr($actual, strlen('var Messages = '), -1); + $json = substr($actual, strlen('window.Messages = '), -1); $array = json_decode($json, true); $this->assertIsArray($array); |