-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/1.2'
- Loading branch information
Showing
4 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,13 @@ public function getCriteriaPayloads(): iterable | |
return [ | ||
'exact match' => [ | ||
'json', | ||
$this->buildJsonCriterionQuery('"UserEmailCriterion": "[email protected]"'), | ||
2, | ||
$this->buildJsonCriterionQuery('"UserEmailCriterion": "[email protected]"'), | ||
1, | ||
], | ||
'pattern match' => [ | ||
'json', | ||
$this->buildJsonCriterionQuery('"UserEmailCriterion": "nospam@*"'), | ||
2, | ||
$this->buildJsonCriterionQuery('"UserEmailCriterion": "admin@*"'), | ||
1, | ||
], | ||
]; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -475,7 +475,7 @@ public function testIfLoginIsUsedByAnotherUser() | |
public function testFilterUsersByEmailQueryParameter() | ||
{ | ||
$response = $this->sendHttpRequest( | ||
$this->createHttpRequest('GET', '/api/ezp/v2/user/users?email=[email protected]') | ||
$this->createHttpRequest('GET', '/api/ezp/v2/user/users?email=[email protected]') | ||
); | ||
|
||
self::assertHttpResponseCodeEquals($response, 200); | ||
|
@@ -490,7 +490,7 @@ public function testFilterUsersByEmailQueryParameter() | |
public function testIfEmailIsUsedByAnotherUser() | ||
{ | ||
$response = $this->sendHttpRequest( | ||
$this->createHttpRequest('HEAD', '/api/ezp/v2/user/users?email=[email protected]') | ||
$this->createHttpRequest('HEAD', '/api/ezp/v2/user/users?email=[email protected]') | ||
); | ||
|
||
self::assertHttpResponseCodeEquals($response, 200); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ public function testParse() | |
], | ||
'remoteId' => 'remoteId12345678', | ||
'login' => 'login', | ||
'email' => '[email protected]', | ||
'email' => '[email protected]', | ||
'password' => 'password', | ||
'enabled' => 'true', | ||
'fields' => [ | ||
|
@@ -111,7 +111,7 @@ public function testParseExceptionOnInvalidContentType() | |
], | ||
'remoteId' => 'remoteId12345678', | ||
'login' => 'login', | ||
'email' => '[email protected]', | ||
'email' => '[email protected]', | ||
'password' => 'password', | ||
'enabled' => 'true', | ||
'fields' => [ | ||
|
@@ -144,7 +144,7 @@ public function testParseExceptionOnMissingMainLanguageCode() | |
], | ||
'remoteId' => 'remoteId12345678', | ||
'login' => 'login', | ||
'email' => '[email protected]', | ||
'email' => '[email protected]', | ||
'password' => 'password', | ||
'enabled' => 'true', | ||
'fields' => [ | ||
|
@@ -177,7 +177,7 @@ public function testParseExceptionOnMissingLogin() | |
'_href' => '/content/sections/4', | ||
], | ||
'remoteId' => 'remoteId12345678', | ||
'email' => '[email protected]', | ||
'email' => '[email protected]', | ||
'password' => 'password', | ||
'enabled' => 'true', | ||
'fields' => [ | ||
|
@@ -244,7 +244,7 @@ public function testParseExceptionOnMissingPassword() | |
], | ||
'remoteId' => 'remoteId12345678', | ||
'login' => 'login', | ||
'email' => '[email protected]', | ||
'email' => '[email protected]', | ||
'enabled' => 'true', | ||
'fields' => [ | ||
'field' => [ | ||
|
@@ -275,7 +275,7 @@ public function testParseExceptionOnInvalidSection() | |
'Section' => [], | ||
'remoteId' => 'remoteId12345678', | ||
'login' => 'login', | ||
'email' => '[email protected]', | ||
'email' => '[email protected]', | ||
'password' => 'password', | ||
'enabled' => 'true', | ||
'fields' => [ | ||
|
@@ -309,7 +309,7 @@ public function testParseExceptionOnInvalidFields() | |
], | ||
'remoteId' => 'remoteId12345678', | ||
'login' => 'login', | ||
'email' => '[email protected]', | ||
'email' => '[email protected]', | ||
'password' => 'password', | ||
'enabled' => 'true', | ||
]; | ||
|
@@ -335,7 +335,7 @@ public function testParseExceptionOnMissingFieldDefinitionIdentifier() | |
], | ||
'remoteId' => 'remoteId12345678', | ||
'login' => 'login', | ||
'email' => '[email protected]', | ||
'email' => '[email protected]', | ||
'password' => 'password', | ||
'enabled' => 'true', | ||
'fields' => [ | ||
|
@@ -372,7 +372,7 @@ public function testParseExceptionOnInvalidFieldDefinitionIdentifier() | |
], | ||
'remoteId' => 'remoteId12345678', | ||
'login' => 'login', | ||
'email' => '[email protected]', | ||
'email' => '[email protected]', | ||
'password' => 'password', | ||
'enabled' => 'true', | ||
'fields' => [ | ||
|
@@ -406,7 +406,7 @@ public function testParseExceptionOnMissingFieldValue() | |
], | ||
'remoteId' => 'remoteId12345678', | ||
'login' => 'login', | ||
'email' => '[email protected]', | ||
'email' => '[email protected]', | ||
'password' => 'password', | ||
'enabled' => 'true', | ||
'fields' => [ | ||
|
@@ -478,7 +478,7 @@ protected function getUserServiceMock() | |
->method('newUserCreateStruct') | ||
->with( | ||
$this->equalTo('login'), | ||
$this->equalTo('[email protected]'), | ||
$this->equalTo('[email protected]'), | ||
$this->equalTo('password'), | ||
$this->equalTo('eng-US'), | ||
$this->equalTo($contentType) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ public function testParse() | |
], | ||
], | ||
], | ||
'email' => '[email protected]', | ||
'email' => '[email protected]', | ||
'password' => 'somePassword', | ||
'enabled' => 'true', | ||
'__url' => '/user/users/14', | ||
|
@@ -85,7 +85,7 @@ public function testParse() | |
); | ||
|
||
$this->assertEquals( | ||
'[email protected]', | ||
'[email protected]', | ||
$result->userUpdateStruct->email, | ||
'email not created correctly' | ||
); | ||
|
@@ -129,7 +129,7 @@ public function testParseExceptionOnMissingSectionHref() | |
], | ||
], | ||
], | ||
'email' => '[email protected]', | ||
'email' => '[email protected]', | ||
'password' => 'somePassword', | ||
'enabled' => 'true', | ||
'__url' => '/user/users/14', | ||
|
@@ -153,7 +153,7 @@ public function testParseExceptionOnInvalidFields() | |
], | ||
'remoteId' => 'remoteId123456', | ||
'fields' => [], | ||
'email' => '[email protected]', | ||
'email' => '[email protected]', | ||
'password' => 'somePassword', | ||
'enabled' => 'true', | ||
'__url' => '/user/users/14', | ||
|
@@ -183,7 +183,7 @@ public function testParseExceptionOnMissingFieldDefinitionIdentifier() | |
], | ||
], | ||
], | ||
'email' => '[email protected]', | ||
'email' => '[email protected]', | ||
'password' => 'somePassword', | ||
'enabled' => 'true', | ||
'__url' => '/user/users/14', | ||
|
@@ -213,7 +213,7 @@ public function testParseExceptionOnMissingFieldValue() | |
], | ||
], | ||
], | ||
'email' => '[email protected]', | ||
'email' => '[email protected]', | ||
'password' => 'somePassword', | ||
'enabled' => 'true', | ||
'__url' => '/user/users/14', | ||
|