From 95f850a3174c10b27579ab339069b337ee900caf Mon Sep 17 00:00:00 2001 From: Kiran Parajuli Date: Thu, 19 Dec 2019 11:29:58 +0545 Subject: [PATCH] Given steps for createFileWithContentInLocalStorage splitted into seperate functions --- .../features/bootstrap/BasicStructure.php | 38 +++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/tests/acceptance/features/bootstrap/BasicStructure.php b/tests/acceptance/features/bootstrap/BasicStructure.php index 3b00beffcbf3..969a67ce35db 100644 --- a/tests/acceptance/features/bootstrap/BasicStructure.php +++ b/tests/acceptance/features/bootstrap/BasicStructure.php @@ -1607,7 +1607,6 @@ public function theAdministratorRequestsStatusPhp() { /** * @When the administrator creates file :path with content :content in local storage using the testing API - * @Given the administrator has created file :path with content :content in local storage using the testing API * * @param string $path * @param string $content @@ -1622,9 +1621,24 @@ public function theAdministratorCreatesFileUsingTheTestingApi($path, $content) { ); } + /** + * @Given the administrator has created file :path with content :content in local storage using the testing API + * + * @param string $path + * @param string $content + * + * @return void + */ + public function theAdministratorHasCreatedFileUsingTheTestingApi($path, $content) { + $this->theAdministratorHasCreatedFileWithContentInLocalStorageUsingTheTestingApi( + $path, + $content, + 'local_storage' + ); + } + /** * @When the administrator creates file :path with content :content in local storage :mountPoint using the testing API - * @Given the administrator has created file :path with content :content in local storage :mountPount * * @param string $path * @param string $content @@ -1649,9 +1663,27 @@ public function theAdministratorCreatesFileWithContentInLocalStorageUsingTheTest $this->getOcsApiVersion() ); $this->setResponse($response); - $this->theHTTPStatusCodeShouldBeSuccess(); } + /** + * @Given the administrator has created file :path with content :content in local storage :mountPount + * + * @param string $path + * @param string $content + * @param string $mountPoint + * + * @return void + */ + public function theAdministratorHasCreatedFileWithContentInLocalStorageUsingTheTestingApi( + $path, $content, $mountPoint + ) { + $this->theAdministratorCreatesFileWithContentInLocalStorageUsingTheTestingApi( + $path, + $content, + $mountPoint + ); + $this->theHTTPStatusCodeShouldBeSuccess(); + } /** * @When the administrator deletes file :path in local storage using the testing API *