From 8db66d5dfb8b85e395636f71be4db36df069c86e Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 9 Aug 2018 13:56:04 +0200 Subject: Fix double-inserts of the same provider state Signed-off-by: Christoph Wurst --- .../Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDaoTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/lib/Authentication') 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('*') -- cgit v1.2.3