summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-11-04 11:16:12 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-04 11:20:33 +0100
commitd5665eb93b3be6e11cc0d9bbee9bb0eb7d9ec90a (patch)
tree1b2ef5ffadb995cdff291e6d9b469ee7b9c63063 /build
parentbcd7a9a03401dd7eb7ac8ef24a1869dcd9789f67 (diff)
downloadnextcloud-server-d5665eb93b3be6e11cc0d9bbee9bb0eb7d9ec90a.tar.gz
nextcloud-server-d5665eb93b3be6e11cc0d9bbee9bb0eb7d9ec90a.zip
Add sleep function
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/bootstrap/BasicStructure.php8
-rw-r--r--build/integration/features/sharing-v1.feature2
2 files changed, 10 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php
index 2fc940981eb..46647f97e85 100644
--- a/build/integration/features/bootstrap/BasicStructure.php
+++ b/build/integration/features/bootstrap/BasicStructure.php
@@ -361,6 +361,14 @@ trait BasicStructure {
}
/**
+ * @When Sleep for :seconds seconds
+ * @param int $seconds
+ */
+ public function sleepForSeconds($seconds) {
+ sleep((int)$seconds);
+ }
+
+ /**
* @BeforeSuite
*/
public static function addFilesToSkeleton(){
diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature
index 497d8554bc4..07237ac7218 100644
--- a/build/integration/features/sharing-v1.feature
+++ b/build/integration/features/sharing-v1.feature
@@ -901,6 +901,7 @@ Feature: sharing
And user "user0" created a folder "/merge-test-outside-groups-renamebeforesecondshare"
When folder "/merge-test-outside-groups-renamebeforesecondshare" of user "user0" is shared with group "group1"
And User "user1" moved folder "/merge-test-outside-groups-renamebeforesecondshare" to "/merge-test-outside-groups-renamebeforesecondshare-renamed"
+ And Sleep for "1" seconds
And folder "/merge-test-outside-groups-renamebeforesecondshare" of user "user0" is shared with user "user1"
Then as "user1" gets properties of folder "/merge-test-outside-groups-renamebeforesecondshare-renamed" with
|{http://owncloud.org/ns}permissions|
@@ -917,6 +918,7 @@ Feature: sharing
And user "user0" created a folder "/merge-test-outside-groups-renamebeforesecondshare"
When folder "/merge-test-outside-groups-renamebeforesecondshare" of user "user0" is shared with user "user1"
And User "user1" moved folder "/merge-test-outside-groups-renamebeforesecondshare" to "/merge-test-outside-groups-renamebeforesecondshare-renamed"
+ And Sleep for "1" seconds
And folder "/merge-test-outside-groups-renamebeforesecondshare" of user "user0" is shared with group "group1"
Then as "user1" gets properties of folder "/merge-test-outside-groups-renamebeforesecondshare-renamed" with
|{http://owncloud.org/ns}permissions|