Add test for UserprefsDeveloperTab
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
35fca8e2d5
commit
bea182257b
@ -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
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user