Skip to content

Commit 56f7754

Browse files
committed
fix cleanup test
1 parent b151f3c commit 56f7754

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/phpunit/UserTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,16 +333,11 @@ public function testCleanup() {
333333
"hello" => "world",
334334
"expires" => time() - 10
335335
]);
336-
$token2 = User::saveVerifyToken("verify", [
337-
"hello" => "world",
338-
"expires" => time() - 10
339-
]);
340336
$query = Db::$pdo->prepare('SELECT count(*) AS count FROM verify');
341337
$query->execute();
342338
$result = $query->fetchAll();
343339
$beforeCleanup = $result[0]['count'];
344-
$this->assertEquals(2, $beforeCleanup);
345-
340+
$this->assertEquals(1, $beforeCleanup);
346341
User::cleanupTokens();
347342
$query = Db::$pdo->prepare('SELECT count(*) AS count FROM verify');
348343
$query->execute();

0 commit comments

Comments
 (0)