Browse Source

DI container reset added to unit test

tags/3.0.0-alpha1
Klimov Paul 7 years ago
parent
commit
fdad1c98c5
  1. 1
      tests/TestCase.php
  2. 1
      tests/framework/base/ApplicationTest.php

1
tests/TestCase.php

@ -41,6 +41,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase
parent::tearDown();
$this->destroyApplication();
Yii::setLogger(null);
Yii::$container = new \yii\di\Container();
}
/**

1
tests/framework/base/ApplicationTest.php

@ -43,7 +43,6 @@ class ApplicationTest extends TestCase
{
Yii::getLogger()->flush();
$this->mockApplication([
'components' => [
'withoutBootstrapInterface' => [

Loading…
Cancel
Save