Apitest. file extension change

git checkout -b file-extension-rename-test
This commit is contained in:
Viktor Scharf committed 2025-09-09 12:28:39 +02:00
1 parent aa06a372fb
commit aba3a29e8e
2 files changed
+21

No files matched your search

+14
View File
@@ -569,6 +569,20 @@ class CliContext implements Context {
sleep(1);
}
/**
* @When the administrator has created the file :file with content :content for user :user on the POSIX filesystem
*
* @param string $file
* @param string $content
* @param string $user
*
* @return void
*/
public function theAdministratorHasCreatedFile(string $file, string $content, string $user): void {
$this->theAdministratorCreatesFile($file, $content, $user);
$this->theCommandShouldBeSuccessful();
}
/**
* @When the administrator creates the file :file with size :size for user :user on the POSIX filesystem
*
@@ -78,6 +78,13 @@ Feature: create a resources using collaborative posixfs
And the content of file "/new-name.txt" for user "Alice" should be "content"
Scenario: rename a created file
Given the administrator has created the file "test.txt" with content "content" for user "Alice" on the POSIX filesystem
When the administrator renames the file "test.txt" to "test.md" for user "Alice" on the POSIX filesystem
Then the command should be successful
And the content of file "/test.md" for user "Alice" should be "content"
Scenario: move file to folder
Given user "Alice" has uploaded file with content "content" to "test.txt"
When the administrator moves the file "test.txt" to the folder "firstFolder" for user "Alice" on the POSIX filesystem