diff options
Diffstat (limited to 'tests/PHPUnit/Integration/Settings/SettingTest.php')
-rw-r--r-- | tests/PHPUnit/Integration/Settings/SettingTest.php | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/tests/PHPUnit/Integration/Settings/SettingTest.php b/tests/PHPUnit/Integration/Settings/SettingTest.php index c0249814c2..36c8d3ca80 100644 --- a/tests/PHPUnit/Integration/Settings/SettingTest.php +++ b/tests/PHPUnit/Integration/Settings/SettingTest.php @@ -8,15 +8,13 @@ namespace Piwik\Tests\Integration\Settings\Plugin; -use Piwik\Db; use Piwik\Settings\FieldConfig; use Piwik\Settings\Setting; use Piwik\Settings\Storage\Storage; use Piwik\Settings\Storage\Backend; use Exception; +use Piwik\Tests\Framework\Fixture; use Piwik\Tests\Framework\Mock\Settings\FakeBackend; -use Piwik\Tests\Framework\TestCase\IntegrationTestCase; -use Piwik\Validators\CharacterLength; use Piwik\Validators\NotEmpty; use Piwik\Validators\NumberRange; @@ -25,8 +23,20 @@ use Piwik\Validators\NumberRange; * @group Settings * @group Setting */ -class SettingTest extends IntegrationTestCase +class SettingTest extends \PHPUnit_Framework_TestCase { + protected function setUp() + { + $fixutre = new Fixture(); + $fixutre->createEnvironmentInstance(); + } + + protected function tearDown() + { + $fixutre = new Fixture(); + $fixutre->clearInMemoryCaches(); + $fixutre->destroyEnvironment(); + } /** * @expectedException \Exception |