protected function tearDown()
 {
     $data = new Data($this->getMock('\\OCP\\Activity\\IManager'));
     $data->deleteActivities(array('type' => 'test'));
     $query = \OCP\DB::prepare("DELETE FROM `*PREFIX*activity_mq` WHERE `amq_type` = 'test'");
     $query->execute();
     parent::tearDown();
 }
 protected function tearDown()
 {
     $data = new Data($this->getMock('\\OCP\\Activity\\IManager'), \OC::$server->getDatabaseConnection(), $this->getMock('\\OCP\\IUserSession'));
     $data->deleteActivities(array('type' => 'test'));
     $query = \OC::$server->getDatabaseConnection()->prepare("DELETE FROM `*PREFIX*activity_mq` WHERE `amq_type` = 'test'");
     $query->execute();
     parent::tearDown();
 }
Exemplo n.º 3
0
 protected function tearDown()
 {
     $data = new Data($this->getMock('\\OCP\\Activity\\IManager'), \OC::$server->getDatabaseConnection(), $this->getMock('\\OCP\\IUserSession'));
     $this->deleteUser($data, 'activity-api-user1');
     $this->deleteUser($data, 'activity-api-user2');
     $data->deleteActivities(array('app' => 'app1'));
     \OC::$WEBROOT = $this->originalWEBROOT;
     parent::tearDown();
 }
Exemplo n.º 4
0
 protected function tearDown()
 {
     $data = new Data($this->getMock('\\OCP\\Activity\\IManager'));
     $data->deleteActivities(array('affecteduser' => 'activity-api-user1'));
     \OC_User::deleteUser('activity-api-user1');
     $data->deleteActivities(array('affecteduser' => 'activity-api-user2'));
     \OC_User::deleteUser('activity-api-user2');
     $data->deleteActivities(array('type' => 'test'));
     \OC::$WEBROOT = $this->originalWEBROOT;
     parent::tearDown();
 }
Exemplo n.º 5
0
 protected function tearDown()
 {
     $this->restoreService('UserSession');
     parent::tearDown();
 }
Exemplo n.º 6
0
 public function tearDown()
 {
     $this->restoreService('AvatarManager');
     parent::tearDown();
 }
Exemplo n.º 7
0
 protected function tearDown()
 {
     $this->deleteTestActivities();
     parent::tearDown();
 }
 protected function tearDown()
 {
     parent::tearDown();
 }
 protected function tearDown()
 {
     $this->data->deleteActivities(array('type' => 'test'));
     parent::tearDown();
 }
Exemplo n.º 10
0
 protected function tearDown()
 {
     \OC::$WEBROOT = $this->originalWEBROOT;
     parent::tearDown();
 }
Exemplo n.º 11
0
 protected function tearDown()
 {
     $query = \OC::$server->getDatabaseConnection()->prepare('DELETE FROM `*PREFIX*activity_mq` WHERE `amq_timestamp` < 500');
     $query->execute();
     parent::tearDown();
 }
 protected function tearDown()
 {
     $query = \OCP\DB::prepare('DELETE FROM `*PREFIX*activity_mq` WHERE `amq_timestamp` < 200');
     $query->execute();
     parent::tearDown();
 }