diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-11-15 08:20:07 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-11-15 08:25:14 -0500 |
commit | dc61fd1091d7cf7994eb1559691c4dfabec740f5 (patch) | |
tree | b74ade2da6e585b8ceef12521f25560595134bb2 /tests/functional/browse_test.php | |
parent | 4ab178f3efd2ec497081bc1b3e57e4566d2eee6d (diff) | |
download | forums-dc61fd1091d7cf7994eb1559691c4dfabec740f5.tar forums-dc61fd1091d7cf7994eb1559691c4dfabec740f5.tar.gz forums-dc61fd1091d7cf7994eb1559691c4dfabec740f5.tar.bz2 forums-dc61fd1091d7cf7994eb1559691c4dfabec740f5.tar.xz forums-dc61fd1091d7cf7994eb1559691c4dfabec740f5.zip |
[ticket/11202] Check response success before content assertions.
This does not change tests that perform requests which are either
clearly not supposed to succeed or are a gray area.
PHPBB3-11202
Diffstat (limited to 'tests/functional/browse_test.php')
-rw-r--r-- | tests/functional/browse_test.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/functional/browse_test.php b/tests/functional/browse_test.php index 26c18c4c1f..b5748059c6 100644 --- a/tests/functional/browse_test.php +++ b/tests/functional/browse_test.php @@ -15,18 +15,21 @@ class phpbb_functional_browse_test extends phpbb_functional_test_case public function test_index() { $crawler = $this->request('GET', 'index.php'); + $this->assert_response_success(); $this->assertGreaterThan(0, $crawler->filter('.topiclist')->count()); } public function test_viewforum() { $crawler = $this->request('GET', 'viewforum.php?f=2'); + $this->assert_response_success(); $this->assertGreaterThan(0, $crawler->filter('.topiclist')->count()); } public function test_viewtopic() { $crawler = $this->request('GET', 'viewtopic.php?t=1'); + $this->assert_response_success(); $this->assertGreaterThan(0, $crawler->filter('.postbody')->count()); } } |