1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-22 00:21:02 +01:00

[ticket/15192] fix stupid test issue

PHPBB3-15192
This commit is contained in:
hanakin 2017-04-25 18:32:25 -04:00
parent 5c36c41f06
commit 0b818b0739

View File

@ -77,12 +77,12 @@ class phpbb_functional_notification_test extends phpbb_functional_test_case
$crawler = self::request('GET', 'ucp.php?i=ucp_notifications');
// At least one notification should exist
$this->assertGreaterThan(0, $crawler->filter('#notification_list_button strong')->text());
$this->assertGreaterThan(0, $crawler->filter('#notification-button strong')->text());
// Get form token
$link = $crawler->selectLink($this->lang('NOTIFICATIONS_MARK_ALL_READ'))->link()->getUri();
$crawler = self::request('GET', substr($link, strpos($link, 'ucp.')));
$this->assertCount(1, $crawler->filter('#notification_list_button strong.badge.hidden'));
$this->assertEquals("0", $crawler->filter('#notification_list_button strong.badge.hidden')->text());
$this->assertCount(1, $crawler->filter('#notification-button strong.badge.hidden'));
$this->assertEquals("0", $crawler->filter('#notification-button strong.badge.hidden')->text());
}
}