aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/browse_test.php
diff options
context:
space:
mode:
authorPatrick Webster <noxwizard@phpbb.com>2012-04-21 04:37:57 -0500
committerPatrick Webster <noxwizard@phpbb.com>2012-04-21 04:37:57 -0500
commit2aa994b5ad76941689e7993707509e48438c500b (patch)
tree0700c12f55a83615ae96249d21717a461900ff69 /tests/functional/browse_test.php
parentde70b17b1dc19e19faa0d56395a1aba8868c9624 (diff)
downloadforums-2aa994b5ad76941689e7993707509e48438c500b.tar
forums-2aa994b5ad76941689e7993707509e48438c500b.tar.gz
forums-2aa994b5ad76941689e7993707509e48438c500b.tar.bz2
forums-2aa994b5ad76941689e7993707509e48438c500b.tar.xz
forums-2aa994b5ad76941689e7993707509e48438c500b.zip
[ticket/10492] Backporting functional tests
PHPBB3-10492
Diffstat (limited to 'tests/functional/browse_test.php')
-rw-r--r--tests/functional/browse_test.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/functional/browse_test.php b/tests/functional/browse_test.php
new file mode 100644
index 0000000000..d056003578
--- /dev/null
+++ b/tests/functional/browse_test.php
@@ -0,0 +1,26 @@
+<?php
+/**
+*
+* @package testing
+* @copyright (c) 2011 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+/**
+* @group functional
+*/
+class phpbb_functional_browse_test extends phpbb_functional_test_case
+{
+ public function test_index()
+ {
+ $crawler = $this->request('GET', 'index.php');
+ $this->assertGreaterThan(0, $crawler->filter('.topiclist')->count());
+ }
+
+ public function test_viewforum()
+ {
+ $crawler = $this->request('GET', 'viewforum.php?f=2');
+ $this->assertGreaterThan(0, $crawler->filter('.topiclist')->count());
+ }
+}