Example #1
0
 public function tearDown()
 {
     if (file_exists($this->tmpFile)) {
         unlink($this->tmpFile);
     }
     parent::tearDown();
 }
Example #2
0
 public function setUp()
 {
     self::$DI['app'] = $this->loadApp();
     self::dropDatabase();
     parent::setUp();
     self::dropDatabase();
 }
Example #3
0
 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();
 }
Example #4
0
 public function tearDown()
 {
     if (self::$GV_activeFTP) {
         self::$DI['app']['conf']->set(['registry', 'ftp', 'ftp-enabled'], true);
     }
     self::$GV_activeFTP = null;
     parent::tearDown();
 }
Example #5
0
 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"];
 }
Example #6
0
 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();
 }
Example #8
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();
 }
Example #9
0
 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();
 }
Example #11
0
 public static function tearDownAfterClass()
 {
     self::$registrationCollections = self::$collections = self::$login = self::$email = self::$termsOfUse = null;
     parent::tearDownAfterClass();
 }
Example #12
0
 public function setUp()
 {
     parent::setUp();
     $this->usersParameters = ["users" => implode(';', [self::$DI['user']->getId(), self::$DI['user_alt1']->getId()])];
 }
Example #13
0
 public function setUp()
 {
     parent::setUp();
     self::$DI['app']['dispatcher']->removeSubscriber(self::$DI['app']['phraseanet.session-manager-subscriber']);
 }
Example #14
0
 public function tearDown()
 {
     parent::tearDown();
 }
Example #15
0
 public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
 }
Example #16
0
 /**
  * @covers Alchemy\Phrasea\Border\Manager::__destruct
  */
 public function tearDown()
 {
     $this->object = null;
     parent::tearDown();
 }
Example #17
0
 public function setUp()
 {
     parent::setUp();
     self::resetUsersRights(self::$DI['app'], self::$DI['user_alt2']);
 }
Example #18
0
 public static function tearDownAfterClass()
 {
     self::$api = self::$account = null;
     parent::tearDownAfterClass();
 }
Example #19
0
 public function setUp()
 {
     parent::setUp();
     $databoxes = self::$DI['app']['phraseanet.appbox']->get_databoxes();
     $this->databox = array_shift($databoxes);
 }