diff --git a/test/libraries/PMA_server_privileges_test.php b/test/libraries/PMA_server_privileges_test.php index 7a0ade07dc..ff83c92bdc 100644 --- a/test/libraries/PMA_server_privileges_test.php +++ b/test/libraries/PMA_server_privileges_test.php @@ -429,18 +429,32 @@ class PMA_ServerPrivileges_Test extends PHPUnit_Framework_TestCase $GLOBALS['dbi'] = $dbi; $actualHtml = PMA_getHtmlForUserGroupDialog($username, $is_menuswork); - $this->assertEquals( - '
' - . '' - . '
' - . 'User group :' - . '' - . '' - . '
' - . '
', + $this->assertContains( + '
$username); + $html_output = URL::getHiddenInputs($params); + $this->assertContains( + $html_output, + $actualHtml + ); + //__('User group') + $this->assertContains( + __('User group'), + $actualHtml + ); + + // Empty default user group + $this->assertContains( + '', + $actualHtml + ); + + // Current user's group selected + $this->assertContains( + '', $actualHtml );