mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-02 00:44:53 -05:00
[tests-only] [full-ci] Use sharing ng in api spaces (#9082)
* update given step using sharingNg in changeSpaces.feature * update given step using sharingNg in disableAndDeleteSpaces.feature * update given step using sharingNg in editPublicLinkOfSpace.feature * update given step using sharingNg in filePreviews.feature * update given step using sharingNg in listSpaces.feature * update given step using sharingNg in publicLink.feature * update given step using sharingNg in removeSpaceObjects.feature
This commit is contained in:
@@ -3449,7 +3449,7 @@ class SpacesContext implements Context {
|
||||
if ($should) {
|
||||
Assert::assertNotEmpty($responseArray, __METHOD__ . ' Response should contain a link, but it is empty');
|
||||
foreach ($responseArray as $element) {
|
||||
$expectedLinkId = (string) $this->featureContext->getLastCreatedPublicShare()->id;
|
||||
$expectedLinkId = ($this->featureContext->isUsingSharingNG()) ? $this->featureContext->shareNgGetLastCreatedLinkShareID() : (string) $this->featureContext->getLastCreatedPublicShare()->id;
|
||||
Assert::assertEquals($element["id"], $expectedLinkId, "link IDs are different");
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user