From ff34105afaaa1165ea0708d2c2320daef02fcefe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 19 Mar 2014 13:58:58 +0100 Subject: [PATCH] Ensure logout before doing login testing (needed for session sharing) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- test/selenium/PmaSeleniumLoginTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/selenium/PmaSeleniumLoginTest.php b/test/selenium/PmaSeleniumLoginTest.php index e51f45a4a6..cd563c9fdc 100644 --- a/test/selenium/PmaSeleniumLoginTest.php +++ b/test/selenium/PmaSeleniumLoginTest.php @@ -26,6 +26,7 @@ class PMA_SeleniumLoginTest extends PMA_SeleniumBase */ public function testSuccessfulLogin() { + $this->logOutIfLoggedIn(); $this->login(); $this->assertTrue($this->isSuccessLogin()); $this->logOutIfLoggedIn(); @@ -40,6 +41,7 @@ class PMA_SeleniumLoginTest extends PMA_SeleniumBase */ public function testLoginWithWrongPassword() { + $this->logOutIfLoggedIn(); $this->login("Admin", "Admin"); $this->assertTrue($this->isUnsuccessLogin()); }