예제 #1
0
파일: swift.php 프로젝트: nem0xff/core
 protected function tearDown()
 {
     if (is_null($this->instance)) {
         return;
     }
     $this->objectStorage->deleteContainer(true);
     $this->instance->getCache()->clear();
     $users = array('test');
     foreach ($users as $userName) {
         \OC_User::deleteUser($userName);
     }
     parent::tearDown();
 }
예제 #2
0
파일: swift.php 프로젝트: TechArea/core
 protected function tearDown()
 {
     if (is_null($this->instance)) {
         return;
     }
     $this->objectStorage->deleteContainer(true);
     $this->instance->getCache()->clear();
     $users = array('test');
     foreach ($users as $userName) {
         $user = \OC::$server->getUserManager()->get($userName);
         if ($user !== null) {
             $user->delete();
         }
     }
     parent::tearDown();
 }