adding test for listing drive items with new props in personal space
This commit is contained in:
@@ -4106,7 +4106,18 @@ class SpacesContext implements Context {
|
||||
*/
|
||||
public function userGetsTheDriveItemInSpace(string $user, string $file, string $space):void {
|
||||
$spaceId = ($this->getSpaceByName($user, $space))["id"];
|
||||
$itemId = $this->getFileId($user, $space, $file);
|
||||
$itemId = '';
|
||||
if ($space === "Shares") {
|
||||
$itemId = GraphHelper::getShareMountId(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$this->featureContext->getStepLineRef(),
|
||||
$user,
|
||||
$this->featureContext->getPasswordForUser($user),
|
||||
$file
|
||||
);
|
||||
} else {
|
||||
$itemId = $this->getFileId($user, $space, $file);
|
||||
}
|
||||
$url = $this->featureContext->getBaseUrl() . "/graph/v1.0/drives/$spaceId/items/$itemId";
|
||||
// NOTE: extracting properties occurs asynchronously
|
||||
// short wait is necessary before getting those properties
|
||||
|
||||
Reference in New Issue
Block a user