2012-04-21 05:24:57 -05:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
*
|
2014-05-27 20:18:06 +02:00
|
|
|
* This file is part of the phpBB Forum Software package.
|
|
|
|
*
|
|
|
|
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
|
|
|
* @license GNU General Public License, version 2 (GPL-2.0)
|
|
|
|
*
|
|
|
|
* For full copyright and license information, please see
|
|
|
|
* the docs/CREDITS.txt file.
|
2012-04-21 05:24:57 -05:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @group functional
|
|
|
|
*/
|
|
|
|
class phpbb_functional_browse_test extends phpbb_functional_test_case
|
|
|
|
{
|
|
|
|
public function test_index()
|
|
|
|
{
|
2013-05-31 16:16:41 +02:00
|
|
|
$crawler = self::request('GET', 'index.php');
|
2012-04-21 05:24:57 -05:00
|
|
|
$this->assertGreaterThan(0, $crawler->filter('.topiclist')->count());
|
|
|
|
}
|
|
|
|
|
|
|
|
public function test_viewforum()
|
|
|
|
{
|
2013-05-31 16:16:41 +02:00
|
|
|
$crawler = self::request('GET', 'viewforum.php?f=2');
|
2012-04-21 05:24:57 -05:00
|
|
|
$this->assertGreaterThan(0, $crawler->filter('.topiclist')->count());
|
|
|
|
}
|
2012-04-23 17:16:16 -04:00
|
|
|
|
|
|
|
public function test_viewtopic()
|
|
|
|
{
|
2013-05-31 16:16:41 +02:00
|
|
|
$crawler = self::request('GET', 'viewtopic.php?t=1');
|
2012-04-23 17:16:16 -04:00
|
|
|
$this->assertGreaterThan(0, $crawler->filter('.postbody')->count());
|
|
|
|
}
|
2013-07-23 00:58:03 +02:00
|
|
|
|
2015-05-16 23:08:42 +02:00
|
|
|
public function test_help_faq()
|
|
|
|
{
|
|
|
|
$crawler = self::request('GET', 'app.php/help/faq');
|
|
|
|
$this->assertGreaterThan(0, $crawler->filter('h2.faq-title')->count());
|
|
|
|
}
|
|
|
|
|
|
|
|
public function test_help_bbcode()
|
|
|
|
{
|
|
|
|
$crawler = self::request('GET', 'app.php/help/bbcode');
|
|
|
|
$this->assertGreaterThan(0, $crawler->filter('h2.faq-title')->count());
|
|
|
|
}
|
|
|
|
|
2013-07-23 00:58:03 +02:00
|
|
|
public function test_feed()
|
|
|
|
{
|
2015-02-22 23:36:27 +01:00
|
|
|
$crawler = self::request('GET', 'app.php/feed', array(), false);
|
2013-07-23 00:58:03 +02:00
|
|
|
self::assert_response_xml();
|
|
|
|
$this->assertGreaterThan(0, $crawler->filter('entry')->count());
|
|
|
|
}
|
2012-04-21 05:24:57 -05:00
|
|
|
}
|