diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-01-04 22:10:22 +0100 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-01-04 21:49:16 +0000 |
commit | 9bef634cc90d540530c486c8b0d44732fd28c178 (patch) | |
tree | 1e3a10434b52749dfa40c70917b0bcdd15d53559 | |
parent | ac2577fd6615c1aafee179ebc2a4a7138de252f0 (diff) | |
download | nextcloud-server-9bef634cc90d540530c486c8b0d44732fd28c178.tar.gz nextcloud-server-9bef634cc90d540530c486c8b0d44732fd28c178.zip |
ensure db is pristine before starting the tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r-- | apps/user_ldap/tests/User/DeletedUsersIndexTest.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/user_ldap/tests/User/DeletedUsersIndexTest.php b/apps/user_ldap/tests/User/DeletedUsersIndexTest.php index b3cf076e973..916b5119ce0 100644 --- a/apps/user_ldap/tests/User/DeletedUsersIndexTest.php +++ b/apps/user_ldap/tests/User/DeletedUsersIndexTest.php @@ -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); |