mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-24 17:17:15 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user