1
0
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:
Maurício Meneghini Fauth
2022-07-02 11:23:07 -03:00
parent a55b8e88f9
commit e4ea2308c0
59 changed files with 700 additions and 701 deletions

View File

@@ -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);