aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2011-08-21 19:26:15 +0200
committerNils Adermann <naderman@naderman.de>2011-10-14 17:20:53 +0200
commit637d8eabe76907ce4a1e810d8b6bd964acb1b303 (patch)
tree63b82f29cb73a609987185ca026c6174e2068b27 /tests/functional
parent37d9e7e30c3edbd14bb4e0f098ce676f1d7fe07b (diff)
downloadforums-637d8eabe76907ce4a1e810d8b6bd964acb1b303.tar
forums-637d8eabe76907ce4a1e810d8b6bd964acb1b303.tar.gz
forums-637d8eabe76907ce4a1e810d8b6bd964acb1b303.tar.bz2
forums-637d8eabe76907ce4a1e810d8b6bd964acb1b303.tar.xz
forums-637d8eabe76907ce4a1e810d8b6bd964acb1b303.zip
[feature/functional-tests] Implementing functional test framework with goutte
PHPBB3-10414
Diffstat (limited to 'tests/functional')
-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..9c1d04f35d
--- /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-license.php GNU Public License
+*
+*/
+
+/**
+* @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());
+ }
+}