Simplify test to avoid need fo multiline regexp
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
927c3e9cc9
commit
79afd62136
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user