Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 13 |
|
0.00% |
0 / 6 |
CRAP | |
0.00% |
0 / 1 |
| phpbb_functional_browse_test | |
0.00% |
0 / 13 |
|
0.00% |
0 / 6 |
42 | |
0.00% |
0 / 1 |
| test_index | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| test_viewforum | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| test_viewtopic | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| test_help_faq | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| test_help_bbcode | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| test_feed | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * |
| 4 | * This file is part of the phpBB Forum Software package. |
| 5 | * |
| 6 | * @copyright (c) phpBB Limited <https://www.phpbb.com> |
| 7 | * @license GNU General Public License, version 2 (GPL-2.0) |
| 8 | * |
| 9 | * For full copyright and license information, please see |
| 10 | * the docs/CREDITS.txt file. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | /** |
| 15 | * @group functional |
| 16 | */ |
| 17 | class phpbb_functional_browse_test extends phpbb_functional_test_case |
| 18 | { |
| 19 | public function test_index() |
| 20 | { |
| 21 | $crawler = self::request('GET', 'index.php'); |
| 22 | $this->assertGreaterThan(0, $crawler->filter('.topiclist')->count()); |
| 23 | } |
| 24 | |
| 25 | public function test_viewforum() |
| 26 | { |
| 27 | $crawler = self::request('GET', 'viewforum.php?f=2'); |
| 28 | $this->assertGreaterThan(0, $crawler->filter('.topiclist')->count()); |
| 29 | } |
| 30 | |
| 31 | public function test_viewtopic() |
| 32 | { |
| 33 | $crawler = self::request('GET', 'viewtopic.php?t=1'); |
| 34 | $this->assertGreaterThan(0, $crawler->filter('.postbody')->count()); |
| 35 | } |
| 36 | |
| 37 | public function test_help_faq() |
| 38 | { |
| 39 | $crawler = self::request('GET', 'app.php/help/faq'); |
| 40 | $this->assertGreaterThan(0, $crawler->filter('h2.faq-title')->count()); |
| 41 | } |
| 42 | |
| 43 | public function test_help_bbcode() |
| 44 | { |
| 45 | $crawler = self::request('GET', 'app.php/help/bbcode'); |
| 46 | $this->assertGreaterThan(0, $crawler->filter('h2.faq-title')->count()); |
| 47 | } |
| 48 | |
| 49 | public function test_feed() |
| 50 | { |
| 51 | $crawler = self::request('GET', 'app.php/feed', array(), false); |
| 52 | self::assert_response_xml(); |
| 53 | $this->assertGreaterThan(0, $crawler->filter('entry')->count()); |
| 54 | } |
| 55 | } |