diff options
author | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-07-11 13:09:20 -0400 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2013-07-11 22:46:26 +0200 |
commit | 94e5bfaadad3be2bcda5347754c3f1b5be33c620 (patch) | |
tree | 78a2bd3f30460a89d16f86f364d3a7cbe3ed6eeb /tests/functional/forum_style_test.php | |
parent | 335d48775f66c49940429b3e4b2ab711febdf5f5 (diff) | |
download | forums-94e5bfaadad3be2bcda5347754c3f1b5be33c620.tar forums-94e5bfaadad3be2bcda5347754c3f1b5be33c620.tar.gz forums-94e5bfaadad3be2bcda5347754c3f1b5be33c620.tar.bz2 forums-94e5bfaadad3be2bcda5347754c3f1b5be33c620.tar.xz forums-94e5bfaadad3be2bcda5347754c3f1b5be33c620.zip |
[ticket/10772] Updating tests
PHPBB3-10772
Diffstat (limited to 'tests/functional/forum_style_test.php')
-rw-r--r-- | tests/functional/forum_style_test.php | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/tests/functional/forum_style_test.php b/tests/functional/forum_style_test.php index 5d95538f68..59f7341eb6 100644 --- a/tests/functional/forum_style_test.php +++ b/tests/functional/forum_style_test.php @@ -14,16 +14,13 @@ class phpbb_functional_forum_style_test extends phpbb_functional_test_case { public function test_default_forum_style() { - $crawler = $this->request('GET', 'viewtopic.php?t=1&f=2'); - $this->assert_response_success(); + $crawler = self::request('GET', 'viewtopic.php?t=1&f=2'); $this->assertContains('styles/prosilver/', $crawler->filter('head > link[rel=stylesheet]')->attr('href')); - $crawler = $this->request('GET', 'viewtopic.php?t=1'); - $this->assert_response_success(); + $crawler = self::request('GET', 'viewtopic.php?t=1'); $this->assertContains('styles/prosilver/', $crawler->filter('head > link[rel=stylesheet]')->attr('href')); - $crawler = $this->request('GET', 'viewtopic.php?t=1&view=next'); - $this->assert_response_success(); + $crawler = self::request('GET', 'viewtopic.php?t=1&view=next'); $this->assertContains('styles/prosilver/', $crawler->filter('head > link[rel=stylesheet]')->attr('href')); } @@ -33,16 +30,13 @@ class phpbb_functional_forum_style_test extends phpbb_functional_test_case $this->add_style(2, 'test_style'); $db->sql_query('UPDATE ' . FORUMS_TABLE . ' SET forum_style = 2 WHERE forum_id = 2'); - $crawler = $this->request('GET', 'viewtopic.php?t=1&f=2'); - $this->assert_response_success(); + $crawler = self::request('GET', 'viewtopic.php?t=1&f=2'); $this->assertContains('styles/test_style/', $crawler->filter('head > link[rel=stylesheet]')->attr('href')); - $crawler = $this->request('GET', 'viewtopic.php?t=1'); - $this->assert_response_success(); + $crawler = self::request('GET', 'viewtopic.php?t=1'); $this->assertContains('styles/test_style/', $crawler->filter('head > link[rel=stylesheet]')->attr('href')); - $crawler = $this->request('GET', 'viewtopic.php?t=1&view=next'); - $this->assert_response_success(); + $crawler = self::request('GET', 'viewtopic.php?t=1&view=next'); $this->assertContains('styles/test_style/', $crawler->filter('head > link[rel=stylesheet]')->attr('href')); $db->sql_query('UPDATE ' . FORUMS_TABLE . ' SET forum_style = 0 WHERE forum_id = 2'); |