Apply suggestions from code review
This commit is contained in:
1 parent
0bc852d11b
commit
62ef3c024a
2 files changed
+2
-2
No files matched your search
@@ -64,7 +64,7 @@ class GraphHelper {
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function separateAndGetValueForKey(string $keyName, array $actualDriveInformation): string {
|
public static function separateAndGetValueForKey(string $keyName, array $actualDriveInformation): string {
|
||||||
// break the segment with @@@ to find the actual value from the actual drive infromation
|
// break the segment with @@@ to find the actual value from the actual drive information
|
||||||
$separatedKey = explode("@@@", $keyName);
|
$separatedKey = explode("@@@", $keyName);
|
||||||
// this stores the actual value of each key from drive information response used for assertion
|
// this stores the actual value of each key from drive information response used for assertion
|
||||||
$actualKeyValue = $actualDriveInformation;
|
$actualKeyValue = $actualDriveInformation;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ Feature: get users
|
|||||||
| Brian Murphy | %uuid_v4% | brian@example.org | Brian |
|
| Brian Murphy | %uuid_v4% | brian@example.org | Brian |
|
||||||
|
|
||||||
|
|
||||||
Scenario: non-admin user tries get all user
|
Scenario: non-admin user tries to get all users
|
||||||
When user "Brian" tries to get all users using the Graph API
|
When user "Brian" tries to get all users using the Graph API
|
||||||
Then the HTTP status code should be "401"
|
Then the HTTP status code should be "401"
|
||||||
And the last response should be an unauthorized response
|
And the last response should be an unauthorized response
|
||||||
|
|||||||
Reference in new issue
Block a user