Newer
Older
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
/**
* Tests extending DatabaseTestCase are much slower to run: the setUp will
* create all Piwik tables in a freshly empty test database.
*
* This allows each test method to start from a clean DB and setup initial state to
*/
class DatabaseTestCase extends PHPUnit_Framework_TestCase
{
/**
* Setup the database and create the base tables for all tests
*/
public function setUp()
{
parent::setUp();
$this->fixture->performSetUp();
}
/**
* Resets all caches and drops the database
*/
public function tearDown()
{
parent::tearDown();
protected function configureFixture()
{
$this->fixture->loadTranslations = false;
$this->fixture->createSuperUser = false;
$this->fixture->configureComponents = false;
}