Merge pull request #687 from marc1706/ticket/686
[ticket/686] Add possibility to use UI tests
This commit is contained in:
18
tests/testframework/ui_test_case.php
Normal file
18
tests/testframework/ui_test_case.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package Board3 Portal Testing
|
||||||
|
* @copyright (c) Board3 Group ( www.board3.de )
|
||||||
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace board3\portal\tests\testframework;
|
||||||
|
|
||||||
|
abstract class ui_test_case extends \phpbb_ui_test_case
|
||||||
|
{
|
||||||
|
static protected function setup_extensions()
|
||||||
|
{
|
||||||
|
return array('board3/portal');
|
||||||
|
}
|
||||||
|
}
|
||||||
29
tests/ui/portal_visit_ui_test.php
Normal file
29
tests/ui/portal_visit_ui_test.php
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package testing
|
||||||
|
* @copyright (c) 2013 Board3 Group
|
||||||
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group ui
|
||||||
|
*/
|
||||||
|
class phpbb_ui_portal_visit_ui_test extends \board3\portal\tests\testframework\ui_test_case
|
||||||
|
{
|
||||||
|
public function setUp()
|
||||||
|
{
|
||||||
|
parent::setUp();
|
||||||
|
|
||||||
|
$this->purge_cache();
|
||||||
|
|
||||||
|
$this->login();
|
||||||
|
$this->admin_login();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_vanilla_board()
|
||||||
|
{
|
||||||
|
$this->visit('app.php/portal');
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user