Merge pull request #319 from adamgsoc2013/unittest_navigation

add testDisableWarning to Header core code
This commit is contained in:
Michal Čihař 2013-05-05 10:13:38 -07:00
commit fa693f94ab

View File

@ -145,4 +145,19 @@ class PMA_Header_Test extends PHPUnit_Framework_TestCase
$header->getMessage()
);
}
/**
* Test for Disable Warnings
*
* @return void
*/
public function testDisableWarnings()
{
$header = new PMA_Header();
$header->disableWarnings();
$this->assertNotContains(
'Javascript must be enabled past this point',
$header->getDisplay()
);
}
}