chore: Use Aura.SqlQuery for building queries.

Refactor AccountRepository and AccountSearchRepository to use Aura.SqlQuery. This will allow to mock queries when testing.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-11-05 09:58:57 +01:00
parent 08ce35a837
commit 8a2bbc8283
31 changed files with 1926 additions and 1592 deletions

View File

@@ -93,7 +93,7 @@ class AccountRepositoryTest extends UnitaryTestCase
->with($callback, false)
->willReturn($expected);
$this->assertEquals($expected, $this->accountRepository->getPasswordForId(1, new QueryCondition()));
$this->assertEquals($expected, $this->accountRepository->getPasswordForId(1));
}
public function testGetPasswordHistoryForId(): void