public function tearDown()
 {
     parent::tearDown();
     $ext = common_ext_ExtensionsManager::singleton()->getExtensionById('taoQtiItem');
     $ext->setConfig($this->getConfigId(), array($this->getInitialMapping()));
     helpers_File::remove($this->getBasePath());
 }
 public function tearDown()
 {
     if ($this->item) {
         $this->item->delete();
     }
     parent::tearDown();
 }
Example #3
0
 protected function tearDown()
 {
     $this->restoreCache();
     parent::tearDown();
     if ($this->testUser instanceof core_kernel_classes_Resource) {
         $this->testUser->delete();
     }
 }
 public function tearDown()
 {
     $this->itemClass->delete();
     foreach ($this->items as $item) {
         $item->delete();
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     helpers_File::remove($this->getBasePath());
     //unregister all
     $ids = array_keys(array_diff_key($this->getClientLibRegistryMap(), $this->initialMapping));
     foreach ($ids as $id) {
         ClientLibRegistry::getRegistry()->remove($id);
     }
 }
 public function tearDown()
 {
     parent::tearDown();
     $userService = tao_models_classes_UserService::singleton();
     $roleService = tao_models_classes_RoleService::singleton();
     if ($this->user != null) {
         $userService->removeUser($this->user);
     }
     if ($this->testRole) {
         $roleService->removeRole($this->testRole);
     }
 }
 public function tearDown()
 {
     parent::tearDown();
     // Restore previous Theming config...
     $this->service->syncThemingConfig($this->tempConfig);
     // Deal with data storage.
     $dataDir = $this->service->getDataDirectory();
     @unlink(rtrim($dataDir->getAbsolutePath(), "/\\") . '/data.txt');
     @unlink(rtrim(sys_get_temp_dir(), "\\/") . '/tmp-platformthemingtest.txt');
     @unlink(rtrim(sys_get_temp_dir(), "\\/") . '/tmp-mynewname.txt');
     unset($service);
 }
Example #8
0
 public function tearDown()
 {
     parent::tearDown();
     $this->class->delete();
     $this->property->delete();
 }
Example #9
0
 public function tearDown()
 {
     parent::tearDown();
     tao_helpers_File::remove($this->envPath, true);
     $this->assertFalse(is_dir($this->envPath));
 }
Example #10
0
 public function tearDown()
 {
     parent::tearDown();
     ThemeRegistry::getRegistry()->remove('itemsTest');
     ThemeRegistry::getRegistry()->remove('testsTest');
 }
 public function tearDown()
 {
     parent::tearDown();
     unset($this->imsManifestExtractor);
 }
Example #12
0
 public function tearDown()
 {
     parent::tearDown();
     $this->credentials->delete();
 }
 public function tearDown()
 {
     parent::tearDown();
 }