protected function setUp()
 {
     parent::setUp();
     $this->testEnvironment = new TestEnvironment();
     $this->testEnvironment->addConfiguration('smwgEnabledDeferredUpdate', false);
     PropertyRegistry::clear();
     $this->checkIfDatabaseCanBeUsedOtherwiseSkipTest();
     $this->checkIfStoreCanBeUsedOtherwiseSkipTest();
     ApplicationFactory::getInstance()->registerObject('Store', $this->getStore());
     ApplicationFactory::getInstance()->registerObject('Cache', ApplicationFactory::getInstance()->newCacheFactory()->newFixedInMemoryCache());
     $this->testEnvironment->clearPendingDeferredUpdates();
 }