aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Authentication
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-08-09 13:56:04 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-08-09 13:56:04 +0200
commit8db66d5dfb8b85e395636f71be4db36df069c86e (patch)
tree62066307f09848c1b48fcba89450448989c77b9b /tests/lib/Authentication
parent85bc5edb5e8dbbf6bbebf4637ac9e05cc9399f78 (diff)
downloadnextcloud-server-8db66d5dfb8b85e395636f71be4db36df069c86e.tar.gz
nextcloud-server-8db66d5dfb8b85e395636f71be4db36df069c86e.zip
Fix double-inserts of the same provider state
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib/Authentication')
-rw-r--r--tests/lib/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDaoTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDaoTest.php b/tests/lib/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDaoTest.php
index 2f74a81503d..b46bce719fa 100644
--- a/tests/lib/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDaoTest.php
+++ b/tests/lib/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDaoTest.php
@@ -115,8 +115,8 @@ class ProviderUserAssignmentDaoTest extends TestCase {
public function testPersistSameStateTwice() {
$qb = $this->dbConn->getQueryBuilder();
- $this->dao->persist('twofactor_totp', 'user123', 0);
- $this->dao->persist('twofactor_totp', 'user123', 0);
+ $this->dao->persist('twofactor_totp', 'user123', 1);
+ $this->dao->persist('twofactor_totp', 'user123', 1);
$q = $qb
->select('*')