Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-06-18 11:26:13 +0300
committerdiosmosis <benaka@piwik.pro>2015-06-20 03:09:13 +0300
commit1b0671cbb15c81a5affb44843f67d95b83f53629 (patch)
tree306bcd1c928731dd1d02d7b32997b703f8b1b006 /tests/PHPUnit/Framework/TestCase
parenta75bc3b621337e93d899c011f3f8a260e6cb13e4 (diff)
Make sure to destroy the environment in integration tests.
Diffstat (limited to 'tests/PHPUnit/Framework/TestCase')
-rw-r--r--tests/PHPUnit/Framework/TestCase/IntegrationTestCase.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/PHPUnit/Framework/TestCase/IntegrationTestCase.php b/tests/PHPUnit/Framework/TestCase/IntegrationTestCase.php
index f931366ea5..ca317d6e43 100644
--- a/tests/PHPUnit/Framework/TestCase/IntegrationTestCase.php
+++ b/tests/PHPUnit/Framework/TestCase/IntegrationTestCase.php
@@ -76,9 +76,10 @@ abstract class IntegrationTestCase extends SystemTestCase
{
parent::setUp();
- self::$fixture->extraDefinitions = array_merge(static::provideContainerConfigBeforeClass(), $this->provideContainerConfig());
- self::$fixture->createEnvironmentInstance();
+ static::$fixture->extraDefinitions = array_merge(static::provideContainerConfigBeforeClass(), $this->provideContainerConfig());
+ static::$fixture->createEnvironmentInstance();
+ Db::createDatabaseObject();
Fixture::loadAllPlugins(new TestingEnvironmentVariables(), get_class($this), self::$fixture->extraPluginsToLoad);
Access::getInstance()->setSuperUserAccess(true);
@@ -98,6 +99,7 @@ abstract class IntegrationTestCase extends SystemTestCase
public function tearDown()
{
static::$fixture->clearInMemoryCaches();
+ static::$fixture->destroyEnvironment();
parent::tearDown();
}