summaryrefslogtreecommitdiffstats
path: root/build/integration/features
diff options
context:
space:
mode:
authorSergio Bertolin <sbertolin@solidgear.es>2016-04-14 12:27:17 +0000
committerRoeland Jago Douma <rullzer@owncloud.com>2016-05-31 10:41:38 +0200
commitc6a5a430093421dedea526cd096e62fd5a4be8d2 (patch)
tree45f0bb304a03b0af6e3343ff64f4acb56fbc0541 /build/integration/features
parent59ed464ee63a0719eeed3bbc2864749a2ce04ff0 (diff)
downloadnextcloud-server-c6a5a430093421dedea526cd096e62fd5a4be8d2.tar.gz
nextcloud-server-c6a5a430093421dedea526cd096e62fd5a4be8d2.zip
Added tests about overwriting files and folders as recipient
Diffstat (limited to 'build/integration/features')
-rw-r--r--build/integration/features/bootstrap/BasicStructure.php11
-rw-r--r--build/integration/features/bootstrap/FederationContext.php2
2 files changed, 12 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php
index b8fb516fada..9248b2cd252 100644
--- a/build/integration/features/bootstrap/BasicStructure.php
+++ b/build/integration/features/bootstrap/BasicStructure.php
@@ -261,6 +261,17 @@ trait BasicStructure {
}
/**
+ * @Given User :user modifies text of :filename with text :text
+ * @param string $user
+ * @param string $filename
+ * @param string $text
+ */
+ public function modifyTextOfFile($user, $filename, $text) {
+ self::removeFile("../../data/$user/files", "$filename");
+ file_put_contents("../../data/$user/files" . "$filename", "$text");
+ }
+
+ /**
* @BeforeSuite
*/
public static function addFilesToSkeleton(){
diff --git a/build/integration/features/bootstrap/FederationContext.php b/build/integration/features/bootstrap/FederationContext.php
index 2809c6974fa..55f3a55da0d 100644
--- a/build/integration/features/bootstrap/FederationContext.php
+++ b/build/integration/features/bootstrap/FederationContext.php
@@ -12,7 +12,7 @@ require __DIR__ . '/../../vendor/autoload.php';
*/
class FederationContext implements Context, SnippetAcceptingContext {
- use Sharing;
+ use WebDav;
/**
* @Given /^User "([^"]*)" from server "(LOCAL|REMOTE)" shares "([^"]*)" with user "([^"]*)" from server "(LOCAL|REMOTE)"$/