aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-05-31 00:29:42 +0200
committerTristan Darricau <github@nicofuma.fr>2014-05-31 00:29:42 +0200
commit7c4bd8cc76e9a0511b54752e88f18c3ee4be2ec6 (patch)
tree8efe7e6ec6f95edd058524012575c15f7ea7681f
parent63c62f86ee225c9e4088411e84947272e359049e (diff)
downloadforums-7c4bd8cc76e9a0511b54752e88f18c3ee4be2ec6.tar
forums-7c4bd8cc76e9a0511b54752e88f18c3ee4be2ec6.tar.gz
forums-7c4bd8cc76e9a0511b54752e88f18c3ee4be2ec6.tar.bz2
forums-7c4bd8cc76e9a0511b54752e88f18c3ee4be2ec6.tar.xz
forums-7c4bd8cc76e9a0511b54752e88f18c3ee4be2ec6.zip
[ticket/8610] Use css selector instead of xPath
PHPBB3-8610
-rw-r--r--tests/functional/visibility_softdelete_test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/functional/visibility_softdelete_test.php b/tests/functional/visibility_softdelete_test.php
index 9ed8406160..d92ff7425d 100644
--- a/tests/functional/visibility_softdelete_test.php
+++ b/tests/functional/visibility_softdelete_test.php
@@ -594,7 +594,8 @@ class phpbb_functional_visibility_softdelete_test extends phpbb_functional_test_
$this->add_lang('viewtopic');
$crawler = self::request('GET', "viewtopic.php?t={$this->data['topics']['Soft Delete Topic #2']}&sid={$this->sid}");
- $bookmark_tag = $crawler->filterXPath('//div/ul/li/a[contains(., "Bookmark topic")]');
+ $bookmark_tag = $crawler->filter('a.bookmark-link');
+ $this->assertContainsLang('BOOKMARK_TOPIC', $bookmark_tag->text());
$bookmark_link = $bookmark_tag->attr('href');
$crawler_bookmark = self::request('GET', $bookmark_link);
$this->assertContainsLang('BOOKMARK_ADDED', $crawler_bookmark->text());