Simplify test to avoid need fo multiline regexp

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-01-06 11:58:43 +01:00
parent 927c3e9cc9
commit 79afd62136

View File

@ -77,9 +77,11 @@ class PMA_Operations_Test extends PHPUnit_Framework_TestCase
{
$_REQUEST['db_collation'] = 'db1';
$html = PMA_getHtmlForRenameDatabase("pma");
$this->assertContains('db_operations.php', $html);
$this->assertRegExp(
'/.*db_operations.php(.|[\\n])*db_rename([\\n]|.)*Rename database to.*/m',
PMA_getHtmlForRenameDatabase("pma")
'/.*db_rename.*Rename database to.*/',
$html
);
}