Add test for UserprefsDeveloperTab

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-09-06 12:02:39 +02:00
parent 35fca8e2d5
commit bea182257b

View File

@ -295,6 +295,28 @@ class PMA_User_Preferences_Test extends PMATestCase
);
}
/**
* Test for PMA_applyUserprefs
*
* @return void
*/
public function testApplyDevelUserprefs()
{
$GLOBALS['cfg']['UserprefsDeveloperTab'] = true;
$result = PMA_applyUserprefs(
array(
'DBG/sql' => true,
)
);
$this->assertEquals(
array(
'DBG' => array('sql' => true),
),
$result
);
}
/**
* Test for PMA_persistOption
*