Beispiel #1
0
 public function tearDown()
 {
     if (file_exists($this->tmpFile)) {
         unlink($this->tmpFile);
     }
     parent::tearDown();
 }
Beispiel #2
0
 public function tearDown()
 {
     if (self::$GV_activeFTP) {
         self::$DI['app']['conf']->set(['registry', 'ftp', 'ftp-enabled'], true);
     }
     self::$GV_activeFTP = null;
     parent::tearDown();
 }
 public function tearDown()
 {
     if (self::$api instanceof \Bridge_Api) {
         self::$api->delete();
     }
     if (self::$account instanceof \Bridge_Account) {
         self::$account->delete();
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     self::$DI['app']['acl'] = new ACLProvider(self::$DI['app']);
     foreach (self::$createdCollections as $collection) {
         try {
             $collection->unmount_collection(self::$DI['app']);
         } catch (\Exception $e) {
         }
         try {
             $collection->delete();
         } catch (\Exception $e) {
         }
     }
     self::$createdCollections = [];
     // /!\ re enable collection
     self::$DI['collection']->enable(self::$DI['app']['phraseanet.appbox']);
     parent::tearDown();
 }
Beispiel #5
0
 public function tearDown()
 {
     if (!self::$createdCollections) {
         parent::tearDown();
         return;
     }
     foreach (self::$createdCollections as $collection) {
         try {
             $collection->unmount_collection(self::$DI['app']);
         } catch (\Exception $e) {
         }
         try {
             $collection->delete();
         } catch (\Exception $e) {
         }
     }
     self::$createdCollections = null;
     parent::tearDown();
 }
Beispiel #6
0
 /**
  * @covers Alchemy\Phrasea\Border\Manager::__destruct
  */
 public function tearDown()
 {
     $this->object = null;
     parent::tearDown();
 }
Beispiel #7
0
 public function tearDown()
 {
     $this->resetTOU();
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
 }