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(); }
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(); }