From e75694e258c3f3e8d58b3c516d381f4e30538726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20D?= Date: Mon, 31 Oct 2022 09:27:43 +0100 Subject: [PATCH] chore: Update PHPDoc blocks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rubén D --- .../SP/Repositories/AccountRepositoryTest.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/tests/SP/Repositories/AccountRepositoryTest.php b/tests/SP/Repositories/AccountRepositoryTest.php index 7043ff17..3daf8536 100644 --- a/tests/SP/Repositories/AccountRepositoryTest.php +++ b/tests/SP/Repositories/AccountRepositoryTest.php @@ -114,6 +114,10 @@ class AccountRepositoryTest extends UnitaryTestCase $this->assertEquals($expected, $this->accountRepository->getPasswordHistoryForId(new QueryCondition())); } + /** + * @throws \SP\Core\Exceptions\ConstraintException + * @throws \SP\Core\Exceptions\QueryException + */ public function testIncrementDecryptCounter(): void { $id = 1; @@ -137,6 +141,10 @@ class AccountRepositoryTest extends UnitaryTestCase $this->assertTrue($this->accountRepository->incrementDecryptCounter($id)); } + /** + * @throws \SP\Core\Exceptions\ConstraintException + * @throws \SP\Core\Exceptions\QueryException + */ public function testIncrementDecryptCounterNoRows(): void { $id = 1; @@ -158,6 +166,10 @@ class AccountRepositoryTest extends UnitaryTestCase $this->assertFalse($this->accountRepository->incrementDecryptCounter($id)); } + /** + * @throws \SP\Core\Exceptions\QueryException + * @throws \SP\Core\Exceptions\ConstraintException + */ public function testCreate(): void { $accountRequest = $this->buildAccountRequest(); @@ -219,6 +231,10 @@ class AccountRepositoryTest extends UnitaryTestCase return $accountRequest; } + /** + * @throws \SP\Core\Exceptions\QueryException + * @throws \SP\Core\Exceptions\ConstraintException + */ public function testEditPassword(): void { $accountRequest = $this->buildAccountRequest(); @@ -247,6 +263,10 @@ class AccountRepositoryTest extends UnitaryTestCase $this->assertEquals($expected->getAffectedNumRows(), $this->accountRepository->editPassword($accountRequest)); } + /** + * @throws \SP\Core\Exceptions\ConstraintException + * @throws \SP\Core\Exceptions\QueryException + */ public function testUpdatePassword(): void { $accountPasswordRequest = new AccountPasswordRequest(); @@ -276,6 +296,10 @@ class AccountRepositoryTest extends UnitaryTestCase $this->assertTrue($this->accountRepository->updatePassword($accountPasswordRequest)); } + /** + * @throws \SP\Core\Exceptions\ConstraintException + * @throws \SP\Core\Exceptions\QueryException + */ public function testEditRestore(): void { $historyId = 1; @@ -302,6 +326,10 @@ class AccountRepositoryTest extends UnitaryTestCase $this->assertTrue($this->accountRepository->editRestore($historyId, $userId)); } + /** + * @throws \SP\Core\Exceptions\ConstraintException + * @throws \SP\Core\Exceptions\QueryException + */ public function testDelete(): void { $id = 1; @@ -325,6 +353,9 @@ class AccountRepositoryTest extends UnitaryTestCase $this->assertEquals($expected->getAffectedNumRows(), $this->accountRepository->delete($id)); } + /** + * @throws \SP\Core\Exceptions\SPException + */ public function testUpdate(): void { $accountRequest = $this->buildAccountRequest(); @@ -359,6 +390,9 @@ class AccountRepositoryTest extends UnitaryTestCase $this->assertEquals($expected->getAffectedNumRows(), $this->accountRepository->update($accountRequest)); } + /** + * @throws \SP\Core\Exceptions\SPException + */ public function testUpdateWithChangeGroup(): void { $accountRequest = $this->buildAccountRequest(); @@ -395,6 +429,9 @@ class AccountRepositoryTest extends UnitaryTestCase $this->assertEquals($expected->getAffectedNumRows(), $this->accountRepository->update($accountRequest)); } + /** + * @throws \SP\Core\Exceptions\SPException + */ public function testUpdateWithChangeOwner(): void { $accountRequest = $this->buildAccountRequest(); @@ -431,6 +468,9 @@ class AccountRepositoryTest extends UnitaryTestCase $this->assertEquals($expected->getAffectedNumRows(), $this->accountRepository->update($accountRequest)); } + /** + * @throws \SP\Core\Exceptions\SPException + */ public function testUpdateBulk() { $accountRequest = $this->buildAccountRequest();