aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ui/quick_links_test.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-01-02 20:39:41 +0100
committerMarc Alexander <admin@m-a-styles.de>2017-01-02 20:39:41 +0100
commit429225027ecf53a359dafcfcc3b03ce40f40fa1b (patch)
treeaa2e2831bf648609561637c0ee99c61743b76f64 /tests/ui/quick_links_test.php
parente88aecd3b47ec56b28c721244564d014d7a3ba1f (diff)
downloadforums-429225027ecf53a359dafcfcc3b03ce40f40fa1b.tar
forums-429225027ecf53a359dafcfcc3b03ce40f40fa1b.tar.gz
forums-429225027ecf53a359dafcfcc3b03ce40f40fa1b.tar.bz2
forums-429225027ecf53a359dafcfcc3b03ce40f40fa1b.tar.xz
forums-429225027ecf53a359dafcfcc3b03ce40f40fa1b.zip
[ticket/14947] Create new webdriver instance for every test
PHPUnit seems to have emptied the webdriver between every test, which causes curl errors. A new webdriver instance will now be created for every test file. This does not cause a lot of overhead for ui tests. PHPBB3-14947
Diffstat (limited to 'tests/ui/quick_links_test.php')
-rw-r--r--tests/ui/quick_links_test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/quick_links_test.php b/tests/ui/quick_links_test.php
index 582aeafcae..171ef3ca53 100644
--- a/tests/ui/quick_links_test.php
+++ b/tests/ui/quick_links_test.php
@@ -19,8 +19,8 @@ class quick_links_test extends phpbb_ui_test_case
public function test_quick_links()
{
$this->visit('index.php');
- $this->assertEmpty(self::find_element('className', 'dropdown')->getText());
- self::find_element('className', 'dropdown-toggle')->click();
- $this->assertNotNull(self::find_element('className', 'dropdown')->getText());
+ $this->assertEmpty($this->find_element('className', 'dropdown')->getText());
+ $this->find_element('className', 'dropdown-toggle')->click();
+ $this->assertNotNull($this->find_element('className', 'dropdown')->getText());
}
}