ensure db is pristine before starting the tests

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2019-01-04 22:10:22 +01:00
parent 85f14bc591
commit 925043c60c
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 3 additions and 0 deletions

View File

@ -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);