diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-01-04 22:10:22 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-01-04 22:10:22 +0100 |
commit | 925043c60cb178939bfa4bb58e5ae3260b1df11e (patch) | |
tree | 377cb4ea4965a271981d3eba3f8883880e214b11 /apps | |
parent | 85f14bc591e764d36c570cec0b594a4f818d675a (diff) | |
download | nextcloud-server-925043c60cb178939bfa4bb58e5ae3260b1df11e.tar.gz nextcloud-server-925043c60cb178939bfa4bb58e5ae3260b1df11e.zip |
ensure db is pristine before starting the tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-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); |