You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-25 06:39:48 +03:00
Refactor JavaScriptMessagesController controller
- Removes the dependency of the cfg and theme PHP globals. - Handles the errors when encoding the messages to JSON. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
@@ -21,10 +21,6 @@ class JavaScriptMessagesControllerTest extends TestCase
|
||||
{
|
||||
public function testIndex(): void
|
||||
{
|
||||
global $cfg;
|
||||
|
||||
$cfg['GridEditing'] = 'double-click';
|
||||
|
||||
ob_start();
|
||||
(new JavaScriptMessagesController())();
|
||||
$actual = ob_get_contents();
|
||||
|
||||
Reference in New Issue
Block a user