added test to create odt file inside deleted parent folder

This commit is contained in:
Prajwol Amatya
2024-09-17 10:02:02 +05:45
parent e0495932fa
commit 02288eaad2
2 changed files with 49 additions and 0 deletions
@@ -205,4 +205,27 @@ class CollaborationContext implements Context {
)
);
}
/**
* @When user :user tries to create a file :file inside deleted folder using wopi endpoint
*
* @param string $user
* @param string $file
*
* @return void
* @throws GuzzleException
*/
public function userTriesToCreateAFileInsideDeletedFolderUsingWopiEndpoint(string $user, string $file): void {
$parentContainerId = $this->featureContext->getStoredFileID();
$this->featureContext->setResponse(
CollaborationHelper::createFile(
$this->featureContext->getBaseUrl(),
$this->featureContext->getStepLineRef(),
$user,
$this->featureContext->getPasswordForUser($user),
$parentContainerId,
$file
)
);
}
}