aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-11-15 19:48:46 +0100
committerAndreas Fischer <bantu@phpbb.com>2012-11-15 19:48:46 +0100
commit14a42a97a856830f5856428a46017b0bf6b1588d (patch)
tree29f5731fb46378a5bc6aa5d84d76e7d1a22f5a57 /tests/functional
parent27594130b0cb5d99a3350deeec6e6c6886f30155 (diff)
parentaf7ab2d3ac287db1a2c9ed623e21393cb429203f (diff)
downloadforums-14a42a97a856830f5856428a46017b0bf6b1588d.tar
forums-14a42a97a856830f5856428a46017b0bf6b1588d.tar.gz
forums-14a42a97a856830f5856428a46017b0bf6b1588d.tar.bz2
forums-14a42a97a856830f5856428a46017b0bf6b1588d.tar.xz
forums-14a42a97a856830f5856428a46017b0bf6b1588d.zip
Merge remote-tracking branch 'p/ticket/11202-olympus' into develop-olympus
* p/ticket/11202-olympus: [ticket/11202] Custom message does not make sense here, delete it. [ticket/11202] Check response success before content assertions. [ticket/11202] Add a heuristic function to check for response success.
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/browse_test.php3
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());
}
}