Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(User): register DB testCreate/Delete users for proper cleanup
Signed-off-by: Josh <[email protected]>
  • Loading branch information
joshtrichards authored Jan 8, 2026
commit eaed66dac2a05ca60bee710d162050604251c5bf
4 changes: 2 additions & 2 deletions tests/lib/User/DatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ function (Event $event): void {
}

public function testCreateUserInvalidatesCache(): void {
$user1 = $this->getUniqueID('test_');
$user1 = $this->getUser();
$this->assertFalse($this->backend->userExists($user1));
$this->backend->createUser($user1, 'pw');
$this->assertTrue($this->backend->userExists($user1));
}

public function testDeleteUserInvalidatesCache(): void {
$user1 = $this->getUniqueID('test_');
$user1 = $this->getUser();
$this->backend->createUser($user1, 'pw');
$this->assertTrue($this->backend->userExists($user1));
$this->backend->deleteUser($user1);
Expand Down
Loading