public function tearDown() { if (file_exists($this->tmpFile)) { unlink($this->tmpFile); } parent::tearDown(); }
public function setUp() { self::$DI['app'] = $this->loadApp(); self::dropDatabase(); parent::setUp(); self::dropDatabase(); }
public function setUp() { parent::setUp(); $databoxes = $this->getApplication()->getDataboxes(); // Can not keep databox instance as appbox is cleared $databox = array_shift($databoxes); $this->databox_id = $databox->get_sbas_id(); }
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 setUp() { parent::setUp(); self::$DI['app'] = self::$DI->share(function ($DI) { return $this->loadApp('/lib/Alchemy/Phrasea/Application/Api.php'); }); $this->queryParameters = ["response_type" => "code", "client_id" => self::$DI['oauth2-app-user']->getClientId(), "redirect_uri" => self::$DI['oauth2-app-user']->getRedirectUri(), "scope" => "", "state" => "valueTest"]; }
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(); }
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(); }
public function setUp() { parent::setUp(); self::$DI['app']['notification.deliverer'] = $this->getMockBuilder('Alchemy\\Phrasea\\Notification\\Deliverer')->disableOriginalConstructor()->getMock(); }
public static function tearDownAfterClass() { self::resetUsersRights(self::$DI['app'], self::$DI['user']); parent::tearDownAfterClass(); }
public static function tearDownAfterClass() { self::$registrationCollections = self::$collections = self::$login = self::$email = self::$termsOfUse = null; parent::tearDownAfterClass(); }
public function setUp() { parent::setUp(); $this->usersParameters = ["users" => implode(';', [self::$DI['user']->getId(), self::$DI['user_alt1']->getId()])]; }
public function setUp() { parent::setUp(); self::$DI['app']['dispatcher']->removeSubscriber(self::$DI['app']['phraseanet.session-manager-subscriber']); }
public function tearDown() { parent::tearDown(); }
public static function tearDownAfterClass() { parent::tearDownAfterClass(); }
/** * @covers Alchemy\Phrasea\Border\Manager::__destruct */ public function tearDown() { $this->object = null; parent::tearDown(); }
public function setUp() { parent::setUp(); self::resetUsersRights(self::$DI['app'], self::$DI['user_alt2']); }
public static function tearDownAfterClass() { self::$api = self::$account = null; parent::tearDownAfterClass(); }
public function setUp() { parent::setUp(); $databoxes = self::$DI['app']['phraseanet.appbox']->get_databoxes(); $this->databox = array_shift($databoxes); }