From 1ea586a930f6a7cb83013fa219a692e3cdea8279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 18 Feb 2014 15:44:19 +0100 Subject: [PATCH] Use name in same namespace for database copying tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- test/selenium/PmaSeleniumDbOperationsTest.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/selenium/PmaSeleniumDbOperationsTest.php b/test/selenium/PmaSeleniumDbOperationsTest.php index af65c9f82f..09e755250e 100644 --- a/test/selenium/PmaSeleniumDbOperationsTest.php +++ b/test/selenium/PmaSeleniumDbOperationsTest.php @@ -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"); } }