ensure db is pristine before starting the tests

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pull/13372/head
Arthur Schiwon 2019-01-04 22:10:22 +07:00 committed by Backportbot
parent bebec87880
commit 03e75aea49
1 changed files with 3 additions and 0 deletions

@ -55,6 +55,9 @@ class DeletedUsersIndexTest extends \Test\TestCase {
$this->config = \OC::$server->getConfig();
$this->db = \OC::$server->getDatabaseConnection();
// ensure a clean database
$this->config->deleteAppFromAllUsers('user_ldap');
$this->mapping = $this->createMock(UserMapping::class);
$this->dui = new DeletedUsersIndex($this->config, $this->db, $this->mapping);