Use new testing framework, weeeeh
This commit is contained in:
@@ -11,6 +11,11 @@ namespace board3\portal\tests\testframework;
|
||||
|
||||
abstract class database_test_case extends \phpbb_database_test_case
|
||||
{
|
||||
static protected function setup_extensions()
|
||||
{
|
||||
return array('board3/portal');
|
||||
}
|
||||
|
||||
protected $db;
|
||||
|
||||
public function setUp()
|
||||
@@ -19,31 +24,4 @@ abstract class database_test_case extends \phpbb_database_test_case
|
||||
global $db;
|
||||
$db = $this->db = $this->new_dbal();
|
||||
}
|
||||
|
||||
protected function create_connection_manager($config)
|
||||
{
|
||||
return new \board3\portal\tests\testframework\database_test_connection_manager($config);
|
||||
}
|
||||
|
||||
public function get_database_config()
|
||||
{
|
||||
$config = \board3\portal\tests\testframework\test_case_helpers::get_test_config();
|
||||
|
||||
if (!isset($config['dbms']))
|
||||
{
|
||||
$this->markTestSkipped('Missing test_config.php: See first error.');
|
||||
}
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
public function get_test_case_helpers()
|
||||
{
|
||||
if (!$this->test_case_helpers)
|
||||
{
|
||||
$this->test_case_helpers = new \board3\portal\tests\testframework\test_case_helpers($this);
|
||||
}
|
||||
|
||||
return $this->test_case_helpers;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user