1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-29 21:24:44 +03:00

Use name in same namespace for database copying tests

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař
2014-02-18 15:44:19 +01:00
parent f6360a9924
commit 1ea586a930

View File

@@ -100,22 +100,23 @@ class PMA_SeleniumDbOperationsTest extends PMA_SeleniumBase
*/
public function testCopyDb()
{
$new_db_name = $this->database_name . 'copy';
$this->byCssSelector("form#copy_db_form input[name=newname]")
->value("pma_test_db_copy");
->value($new_db_name);
$this->byCssSelector("form#copy_db_form input[type='submit']")->click();
$this->waitForElement(
"byXPath",
"//div[@class='success' and contains(., 'Database " . $this->database_name
. " has been copied to pma_test_db_copy')]"
. " has been copied to $new_db_name')]"
);
$result = $this->dbQuery(
"SHOW DATABASES LIKE 'pma_test_db_copy';"
"SHOW DATABASES LIKE '$new_db_name';"
);
$this->assertEquals(1, $result->num_rows);
$this->dbQuery("DROP DATABASE pma_test_db_copy");
$this->dbQuery("DROP DATABASE $new_db_name");
}
}