. * */ /** * Class Test_User_Database * * @group DB */ class Test_User_Database extends Test_User_Backend { /** @var array */ private $users; public function getUser() { $user = parent::getUser(); $this->users[]=$user; return $user; } protected function setUp() { parent::setUp(); $this->backend=new \OC\User\Database(); } protected function tearDown() { if(!isset($this->users)) { return; } foreach($this->users as $user) { $this->backend->deleteUser($user); } parent::tearDown(); } }