Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-01-05 00:10:22 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-01-05 00:10:22 +0300
commit925043c60cb178939bfa4bb58e5ae3260b1df11e (patch)
tree377cb4ea4965a271981d3eba3f8883880e214b11 /apps/user_ldap/tests
parent85f14bc591e764d36c570cec0b594a4f818d675a (diff)
ensure db is pristine before starting the tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/tests')
-rw-r--r--apps/user_ldap/tests/User/DeletedUsersIndexTest.php3
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);