aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-11-15 20:24:37 +0100
committerAndreas Fischer <bantu@phpbb.com>2012-11-15 20:24:37 +0100
commitb9e1caa81ae2e3eea162c60d2bcec3e01fb539e1 (patch)
tree57b7bcad3b6c61937bbe93e96a26a5eb113f9d8d /tests/functional
parentceae276cd6fb82ed2b4403cea0cb54f3be5a5b6d (diff)
parent14a42a97a856830f5856428a46017b0bf6b1588d (diff)
downloadforums-b9e1caa81ae2e3eea162c60d2bcec3e01fb539e1.tar
forums-b9e1caa81ae2e3eea162c60d2bcec3e01fb539e1.tar.gz
forums-b9e1caa81ae2e3eea162c60d2bcec3e01fb539e1.tar.bz2
forums-b9e1caa81ae2e3eea162c60d2bcec3e01fb539e1.tar.xz
forums-b9e1caa81ae2e3eea162c60d2bcec3e01fb539e1.zip
Merge branch 'develop-olympus' into develop
* develop-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. Conflicts: tests/test_framework/phpbb_functional_test_case.php
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());
}
}