summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-08-26 13:11:09 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-10-04 19:25:10 +0200
commit99404bdfb3b52aca8875384857142528472856e9 (patch)
tree523ab42716e3b8645d17bc44bcfb07e324fb5b70 /build
parentba1ba1a55e2583ccc225ba2962ce3011109e29c4 (diff)
downloadnextcloud-server-99404bdfb3b52aca8875384857142528472856e9.tar.gz
nextcloud-server-99404bdfb3b52aca8875384857142528472856e9.zip
Move sharing integration tests to their own directory
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'build')
-rw-r--r--build/integration/config/behat.yml10
-rw-r--r--build/integration/features/bootstrap/SharingContext.php40
-rw-r--r--build/integration/sharing_features/sharing-v1-part2.feature (renamed from build/integration/features/sharing-v1-part2.feature)0
-rw-r--r--build/integration/sharing_features/sharing-v1-part3.feature (renamed from build/integration/features/sharing-v1-part3.feature)0
-rw-r--r--build/integration/sharing_features/sharing-v1.feature (renamed from build/integration/features/sharing-v1.feature)0
5 files changed, 50 insertions, 0 deletions
diff --git a/build/integration/config/behat.yml b/build/integration/config/behat.yml
index 51b749360e3..27d7daa4818 100644
--- a/build/integration/config/behat.yml
+++ b/build/integration/config/behat.yml
@@ -55,6 +55,16 @@ default:
- admin
- admin
regular_user_password: 123456
+ sharing:
+ paths:
+ - "%paths.base%/../sharing_features"
+ contexts:
+ - SharingContext:
+ baseUrl: http://localhost:8080/ocs/
+ admin:
+ - admin
+ - admin
+ regular_user_password: 123456
setup:
paths:
- "%paths.base%/../setup_features"
diff --git a/build/integration/features/bootstrap/SharingContext.php b/build/integration/features/bootstrap/SharingContext.php
new file mode 100644
index 00000000000..f208565740b
--- /dev/null
+++ b/build/integration/features/bootstrap/SharingContext.php
@@ -0,0 +1,40 @@
+<?php
+/**
+ *
+ *
+ * @author Joas Schilling <coding@schilljs.com>
+ * @author Roeland Jago Douma <roeland@famdouma.nl>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+use Behat\Behat\Context\Context;
+use Behat\Behat\Context\SnippetAcceptingContext;
+use PHPUnit\Framework\Assert;
+use Psr\Http\Message\ResponseInterface;
+
+require __DIR__ . '/../../vendor/autoload.php';
+
+
+/**
+ * Features context.
+ */
+class SharingContext implements Context, SnippetAcceptingContext {
+ use Sharing;
+ use AppConfiguration;
+
+ protected function resetAppConfigs() {}
+}
diff --git a/build/integration/features/sharing-v1-part2.feature b/build/integration/sharing_features/sharing-v1-part2.feature
index 9fbb4cda947..9fbb4cda947 100644
--- a/build/integration/features/sharing-v1-part2.feature
+++ b/build/integration/sharing_features/sharing-v1-part2.feature
diff --git a/build/integration/features/sharing-v1-part3.feature b/build/integration/sharing_features/sharing-v1-part3.feature
index 7c2e66f281b..7c2e66f281b 100644
--- a/build/integration/features/sharing-v1-part3.feature
+++ b/build/integration/sharing_features/sharing-v1-part3.feature
diff --git a/build/integration/features/sharing-v1.feature b/build/integration/sharing_features/sharing-v1.feature
index dd5cc9fff4f..dd5cc9fff4f 100644
--- a/build/integration/features/sharing-v1.feature
+++ b/build/integration/sharing_features/sharing-v1.feature