public function tearDown()
 {
     $app = new Application(Application::ENV_TEST);
     \phrasea::reset_sbasDatas($app['phraseanet.appbox']);
     \phrasea::reset_baseDatas($app['phraseanet.appbox']);
     parent::tearDown();
 }
Exemple #2
0
 /**
  * @covers Alchemy\Phrasea\Border\Attribute\MetaField::__destruct
  */
 public function tearDown()
 {
     \PHPUnit_Framework_Error_Warning::$enabled = $this->before;
     \PHPUnit_Framework_Error_Notice::$enabled = $this->beforeNotice;
     $this->object = null;
     parent::tearDown();
 }
 public function tearDown()
 {
     foreach ($this->tearDownHandlers as $handler) {
         $handler();
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     if ($this->api) {
         $this->api->delete();
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     if (is_file(__DIR__ . '/Fixtures/configuration-maintenance.php')) {
         unlink(__DIR__ . '/Fixtures/configuration-maintenance.php');
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->media = null;
     if (file_exists($this->filename)) {
         unlink($this->filename);
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     $finder = new Finder();
     $finder->files()->in($this->root);
     foreach ($finder as $file) {
         unlink($file->getRealPath());
     }
     parent::tearDown();
 }
Exemple #8
0
 public function tearDown()
 {
     if ($this->object) {
         $this->object->delete();
     }
     try {
         new Bridge_Api(self::$DI['app'], $this->id);
         $this->fail();
     } catch (Bridge_Exception_ApiNotFound $e) {
     }
     parent::tearDown();
 }
Exemple #9
0
 public function tearDown()
 {
     if ($this->object_mono instanceof databox_field) {
         $this->object_mono->delete();
     }
     if ($this->object_multi instanceof databox_field) {
         $this->object_multi->delete();
     }
     $extra = $this->databox->get_meta_structure()->get_element_by_name('Bonoboyoyo');
     if ($extra instanceof databox_field) {
         $extra->delete();
     }
     parent::tearDown();
 }
Exemple #10
0
 public function tearDown()
 {
     if ($this->object) {
         $this->object->delete();
     }
     try {
         new Bridge_Element(self::$DI['app'], $this->account, $this->id);
         $this->fail();
     } catch (Bridge_Exception_ElementNotFound $e) {
     }
     if ($this->api) {
         $this->api->delete();
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     unset($this->object);
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->logout(self::$DI['app']);
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->object->delete();
     parent::tearDown();
 }
Exemple #14
0
 /**
  * @covers Alchemy\Phrasea\Border\Attribute\Metadata::__destruct
  */
 public function tearDown()
 {
     $this->object = null;
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->clean();
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->file = null;
     parent::tearDown();
 }