Skip to content

Commit e45dcb7

Browse files
committed
style fix
1 parent 4bc2bd9 commit e45dcb7

2 files changed

Lines changed: 44 additions & 18 deletions

File tree

tests/acceptance/TestHelpers/GraphHelper.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2449,8 +2449,9 @@ public static function getAllUsers(
24492449
/**
24502450
* @param string $baseUrl
24512451
* @param string $xRequestId
2452-
* @param string $adminUser
2453-
* @param string $adminPassword
2452+
* @param string $user
2453+
* @param string $password
2454+
* @param string $fileId
24542455
*
24552456
* @return ResponseInterface
24562457
* @throws GuzzleException
@@ -2475,8 +2476,9 @@ public static function markFavorite(
24752476
/**
24762477
* @param string $baseUrl
24772478
* @param string $xRequestId
2478-
* @param string $adminUser
2479-
* @param string $adminPassword
2479+
* @param string $user
2480+
* @param string $password
2481+
* @param string $fileId
24802482
*
24812483
* @return ResponseInterface
24822484
* @throws GuzzleException
@@ -2497,4 +2499,4 @@ public static function unmarkFavorite(
24972499
self::getRequestHeaders()
24982500
);
24992501
}
2500-
}
2502+
}

tests/acceptance/bootstrap/GraphContext.php

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3245,16 +3245,22 @@ public function unmarkFavorite(string $user, string $itemId): void {
32453245

32463246
/**
32473247
* @When user :user marks :item :itemName from space :spaceName as favorite using the Graph API
3248-
*
3248+
*
32493249
* @param string $user
32503250
* @param string $item (file|folder)
32513251
* @param string $itemName
32523252
* @param string $spaceName
3253+
*
32533254
* @return void
32543255
*/
3255-
public function userMarksItemFromSpaceAsFavoriteUsingTheGraphApi(string $user, string $item, string $itemName, string $spaceName): void {
3256-
$itemId = ($item === 'file')
3257-
? $this->spacesContext->getFileId($user, $spaceName, $itemName)
3256+
public function userMarksItemFromSpaceAsFavoriteUsingTheGraphApi(
3257+
string $user,
3258+
string $item,
3259+
string $itemName,
3260+
string $spaceName
3261+
): void {
3262+
$itemId = ($item === 'file')
3263+
? $this->spacesContext->getFileId($user, $spaceName, $itemName)
32583264
: $this->spacesContext->getResourceId($user, $spaceName, $itemName);
32593265
$this->markFavorite($user, $itemId);
32603266
}
@@ -3266,11 +3272,17 @@ public function userMarksItemFromSpaceAsFavoriteUsingTheGraphApi(string $user, s
32663272
* @param string $item (file|folder)
32673273
* @param string $itemName
32683274
* @param string $spaceName
3275+
*
32693276
* @return void
32703277
*/
3271-
public function userUnmarksItemFromSpaceAsFavoriteUsingTheGraphApi(string $user, string $item, string $itemName, string $spaceName): void {
3278+
public function userUnmarksItemFromSpaceAsFavoriteUsingTheGraphApi(
3279+
string $user,
3280+
string $item,
3281+
string $itemName,
3282+
string $spaceName
3283+
): void {
32723284
$itemId = ($item === 'file')
3273-
? $this->spacesContext->getFileId($user, $spaceName, $itemName)
3285+
? $this->spacesContext->getFileId($user, $spaceName, $itemName)
32743286
: $this->spacesContext->getResourceId($user, $spaceName, $itemName);
32753287
$this->unmarkFavorite($user, $itemId);
32763288
}
@@ -3282,13 +3294,19 @@ public function userUnmarksItemFromSpaceAsFavoriteUsingTheGraphApi(string $user,
32823294
* @param string $item (folder|file)
32833295
* @param string $itemName
32843296
* @param string $spaceName
3297+
*
32853298
* @return void
32863299
*/
3287-
public function userHasMarkedItemFromSpaceAsFavoriteUsingTheGraphApi(string $user, string $item, string $itemName, string $spaceName): void {
3300+
public function userHasMarkedItemFromSpaceAsFavoriteUsingTheGraphApi(
3301+
string $user,
3302+
string $item,
3303+
string $itemName,
3304+
string $spaceName
3305+
): void {
32883306
$itemId = ($item === 'file')
3289-
? $this->spacesContext->getFileId($user, $spaceName, $itemName)
3307+
? $this->spacesContext->getFileId($user, $spaceName, $itemName)
32903308
: $this->spacesContext->getResourceId($user, $spaceName, $itemName);
3291-
3309+
32923310
$response = $this->markFavorite($user, $itemId);
32933311
$this->featureContext->theHTTPStatusCodeShouldBe(201, '', $response);
32943312
}
@@ -3300,14 +3318,20 @@ public function userHasMarkedItemFromSpaceAsFavoriteUsingTheGraphApi(string $use
33003318
* @param string $item (folder|file)
33013319
* @param string $itemName
33023320
* @param string $spaceName
3321+
*
33033322
* @return void
33043323
*/
3305-
public function userHasUnmarkedItemFromSpaceAsFavoriteUsingTheGraphApi(string $user, string $item, string $itemName, string $spaceName): void {
3324+
public function userHasUnmarkedItemFromSpaceAsFavoriteUsingTheGraphApi(
3325+
string $user,
3326+
string $item,
3327+
string $itemName,
3328+
string $spaceName
3329+
): void {
33063330
$itemId = ($item === 'file')
3307-
? $this->spacesContext->getFileId($user, $spaceName, $itemName)
3331+
? $this->spacesContext->getFileId($user, $spaceName, $itemName)
33083332
: $this->spacesContext->getResourceId($user, $spaceName, $itemName);
3309-
3333+
33103334
$response = $this->unmarkFavorite($user, $itemId);
33113335
$this->featureContext->theHTTPStatusCodeShouldBe(204, '', $response);
33123336
}
3313-
}
3337+
}

0 commit comments

Comments
 (0)