Merge pull request #199 from marc1706/tests/portal_acp
[tests/portal_acp] Test if acp portal pages show without errors
This commit is contained in:
39
tests/functional/portal_acp_test.php
Normal file
39
tests/functional/portal_acp_test.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package testing
|
||||
* @copyright (c) 2013 Board3 Group
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @group functional
|
||||
*/
|
||||
class phpbb_functional_portal_acp_test extends \board3\portal\tests\testframework\functional_test_case
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->login();
|
||||
$this->admin_login();
|
||||
$this->enable_board3_portal_ext();
|
||||
}
|
||||
|
||||
public function acp_pages_data()
|
||||
{
|
||||
return array(
|
||||
array('config'),
|
||||
array('modules'),
|
||||
array('upload_module'),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider acp_pages_data
|
||||
*/
|
||||
public function test_acp_pages($mode)
|
||||
{
|
||||
$crawler = self::request('GET', 'adm/index.php?i=\board3\portal\acp\portal_module&mode=' . $mode . '&sid=' . $this->sid);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user