mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-08 05:09:46 -06:00
Add commit and branch related to this PR to work
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# The test runner source for API tests
|
||||
CORE_COMMITID=d8ed82769fc422c38d6f6bc21253a052eef5e239
|
||||
CORE_COMMITID=b51fb4c01f08763e023aece4f90308e07a7ac73f
|
||||
CORE_BRANCH=master
|
||||
|
||||
# The test runner source for UI tests
|
||||
|
||||
@@ -61,6 +61,7 @@ default:
|
||||
- FilesVersionsContext:
|
||||
- OCSContext:
|
||||
- PublicWebDavContext:
|
||||
- FavoritesContext:
|
||||
- TrashbinContext:
|
||||
- WebDavPropertiesContext:
|
||||
|
||||
|
||||
@@ -269,6 +269,21 @@ class SpacesContext implements Context {
|
||||
return $spaces[$spaceName];
|
||||
}
|
||||
|
||||
/**
|
||||
* This method sets space id by Space Name
|
||||
* This is currently used to set space id from ocis in core so that we can reuse available resource (code) and avoid duplication
|
||||
*
|
||||
* @param string $user
|
||||
* @param string $spaceName
|
||||
*
|
||||
* @return void
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function setSpaceIDByName(string $user, string $spaceName): void {
|
||||
$space = $this->getSpaceByName($user, $spaceName);
|
||||
WebDavHelper::$SPACE_ID_FROM_OCIS = $space['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
* The method finds available spaces to the manager user and returns the space by spaceName
|
||||
*
|
||||
@@ -3259,7 +3274,7 @@ class SpacesContext implements Context {
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function userFavoritesElementInSpaceUsingTheWebdavApi(string $user, string $path, string $spaceName): void {
|
||||
$space = $this->getSpaceByName($user, $spaceName);
|
||||
$this->favoritesContext->userFavoritesElement($user, $path, $space['id']);
|
||||
$this->setSpaceIDByName($user, $spaceName);
|
||||
$this->favoritesContext->userFavoritesElement($user, $path);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user