You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-29 21:24:44 +03:00
Assign Messages global var to the window object
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user