mirror of
https://github.com/Oreolek/yii2-nested-sets.git
synced 2024-06-17 07:10:46 +03:00
31 lines
612 B
PHP
31 lines
612 B
PHP
<?php
|
|
/**
|
|
* @link https://github.com/creocoder/yii2-nested-sets
|
|
* @copyright Copyright (c) 2015 Alexander Kochetov
|
|
* @license http://opensource.org/licenses/BSD-3-Clause
|
|
*/
|
|
|
|
namespace tests;
|
|
|
|
/**
|
|
* DatabaseTestCase
|
|
*/
|
|
abstract class DatabaseTestCase extends \PHPUnit_Extensions_Database_TestCase
|
|
{
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function getConnection()
|
|
{
|
|
return $this->createDefaultDBConnection(\Yii::$app->db->pdo);
|
|
}
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function getDataSet()
|
|
{
|
|
return $this->createFlatXMLDataSet(__DIR__ . '/data/test.xml');
|
|
}
|
|
}
|