Merge pull request #687 from marc1706/ticket/686

[ticket/686] Add possibility to use UI tests
This commit is contained in:
Marc Alexander
2017-11-04 15:12:35 +01:00
committed by GitHub
2 changed files with 47 additions and 0 deletions

View 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');
}
}

View 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');
}
}