Skip to content

Commit

Permalink
Capitialized ID
Browse files Browse the repository at this point in the history
  • Loading branch information
corbadoman committed Sep 24, 2024
1 parent 0dc0111 commit 8190f2b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Services/IdentifierInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function listByValueAndType(string $value, string $type, string $sort = '
* @param int $pageSize
* @return IdentifierList
*/
public function listByUserId(string $userID, string $sort = '', int $page = 1, int $pageSize = 10): IdentifierList;
public function listByUserID(string $userID, string $sort = '', int $page = 1, int $pageSize = 10): IdentifierList;

/**
* @param string $userID
Expand All @@ -57,5 +57,5 @@ public function listByUserId(string $userID, string $sort = '', int $page = 1, i
* @param int $pageSize
* @return IdentifierList
*/
public function listByUserIdAndType(string $userID, string $type, string $sort = '', int $page = 1, int $pageSize = 10): IdentifierList;
public function listByUserIDAndType(string $userID, string $type, string $sort = '', int $page = 1, int $pageSize = 10): IdentifierList;
}
4 changes: 2 additions & 2 deletions src/Services/IdentifierService.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function listByValueAndType(string $value, string $type, string $sort = '
* @throws AssertException
* @throws StandardException
*/
public function listByUserId(string $userID, string $sort = '', int $page = 1, int $pageSize = 10): IdentifierList
public function listByUserID(string $userID, string $sort = '', int $page = 1, int $pageSize = 10): IdentifierList
{
Assert::stringNotEmpty($userID);

Expand All @@ -178,7 +178,7 @@ public function listByUserId(string $userID, string $sort = '', int $page = 1, i
* @throws ServerException
* @throws StandardException
*/
public function listByUserIdAndType(string $userID, string $type, string $sort = '', int $page = 1, int $pageSize = 10): IdentifierList
public function listByUserIDAndType(string $userID, string $type, string $sort = '', int $page = 1, int $pageSize = 10): IdentifierList
{
Assert::stringNotEmpty($userID);
Assert::arrayStringExist(IdentifierType::getAllowableEnumValues(), $type);
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/Identifier/IdentifierCompleteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ public function testIdentifierComplete(): void
$this->assertEquals(1, $rsp->getPaging()->getTotalItems());

// Test listing identifiers by UserId with data returned
$rsp = Utils::SDK()->identifiers()->listByUserId($existingUserID);
$rsp = Utils::SDK()->identifiers()->listByUserID($existingUserID);
$this->assertEquals(1, $rsp->getPaging()->getTotalItems());

// Test listing identifiers by UserId and Type with data returned
$rsp = Utils::SDK()->identifiers()->listByUserIdAndType($existingUserID, IdentifierType::EMAIL);
$rsp = Utils::SDK()->identifiers()->listByUserIDAndType($existingUserID, IdentifierType::EMAIL);
$this->assertEquals(1, $rsp->getPaging()->getTotalItems());

// Test updating an existing identifier with valid data
Expand Down

0 comments on commit 8190f2b

Please sign in to comment.