Merge pull request #1068 from jeffchan/fix-config-generator-test
Cache date in ConfigGenerator unit test
This commit is contained in:
commit
bb280c8cc1
@ -44,6 +44,7 @@ class PMA_ConfigGenerator_Test extends PHPUnit_Framework_TestCase
|
||||
|
||||
$cf->setPersistKeys(array("1/", 2));
|
||||
|
||||
$date = date(DATE_RFC1123);
|
||||
$result = ConfigGenerator::getConfigFile($cf);
|
||||
|
||||
$this->assertContains(
|
||||
@ -52,7 +53,7 @@ class PMA_ConfigGenerator_Test extends PHPUnit_Framework_TestCase
|
||||
" * Generated configuration file\n" .
|
||||
" * Generated by: phpMyAdmin " .
|
||||
$GLOBALS['PMA_Config']->get('PMA_VERSION') . " setup script\n" .
|
||||
" * Date: " . date(DATE_RFC1123) . "\n" .
|
||||
" * Date: " . $date . "\n" .
|
||||
" */\n\n",
|
||||
$result
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user