mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-04 22:57:40 +08:00
Make unit tests cleanup a DB after finish
This commit is contained in:
@ -80,7 +80,6 @@ class TestCase extends Test
|
|||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->mockApplication();
|
$this->mockApplication();
|
||||||
$this->unloadFixtures();
|
|
||||||
$this->loadFixtures();
|
$this->loadFixtures();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,6 +89,7 @@ class TestCase extends Test
|
|||||||
protected function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
$this->destroyApplication();
|
$this->destroyApplication();
|
||||||
|
$this->unloadFixtures();
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user