summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-03-11 10:47:07 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-03-11 13:59:19 +0100
commitc604046e3e0a1156d2cff108edf9f16aa7791394 (patch)
tree6855471917d2076885e28689944920e1afe9da53 /build
parent2faf520504d982a40dd94fdc3bb23b4987f135c2 (diff)
downloadnextcloud-server-c604046e3e0a1156d2cff108edf9f16aa7791394.tar.gz
nextcloud-server-c604046e3e0a1156d2cff108edf9f16aa7791394.zip
Fix checksumsContext
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/bootstrap/ChecksumsContext.php24
1 files changed, 23 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/ChecksumsContext.php b/build/integration/features/bootstrap/ChecksumsContext.php
index a5d20ba965d..af8f9e5590d 100644
--- a/build/integration/features/bootstrap/ChecksumsContext.php
+++ b/build/integration/features/bootstrap/ChecksumsContext.php
@@ -2,7 +2,6 @@
require __DIR__ . '/../../vendor/autoload.php';
-use Behat\Gherkin\Node\TableNode;
use GuzzleHttp\Client;
use GuzzleHttp\Message\ResponseInterface;
@@ -50,6 +49,10 @@ class ChecksumsContext implements \Behat\Behat\Context\Context {
/**
* @When user :user uploads file :source to :destination with checksum :checksum
+ * @param string $user
+ * @param string $source
+ * @param string $destination
+ * @param string $checksum
*/
public function userUploadsFileToWithChecksum($user, $source, $destination, $checksum)
{
@@ -76,6 +79,8 @@ class ChecksumsContext implements \Behat\Behat\Context\Context {
/**
* @Then The webdav response should have a status code :statusCode
+ * @param int $statusCode
+ * @throws \Exception
*/
public function theWebdavResponseShouldHaveAStatusCode($statusCode) {
if((int)$statusCode !== $this->response->getStatusCode()) {
@@ -85,6 +90,8 @@ class ChecksumsContext implements \Behat\Behat\Context\Context {
/**
* @When user :user request the checksum of :path via propfind
+ * @param string $user
+ * @param string $path
*/
public function userRequestTheChecksumOfViaPropfind($user, $path)
{
@@ -109,6 +116,8 @@ class ChecksumsContext implements \Behat\Behat\Context\Context {
/**
* @Then The webdav checksum should match :checksum
+ * @param string $checksum
+ * @throws \Exception
*/
public function theWebdavChecksumShouldMatch($checksum)
{
@@ -128,6 +137,8 @@ class ChecksumsContext implements \Behat\Behat\Context\Context {
/**
* @When user :user downloads the file :path
+ * @param string $user
+ * @param string $path
*/
public function userDownloadsTheFile($user, $path)
{
@@ -144,6 +155,8 @@ class ChecksumsContext implements \Behat\Behat\Context\Context {
/**
* @Then The header checksum should match :checksum
+ * @param string $checksum
+ * @throws \Exception
*/
public function theHeaderChecksumShouldMatch($checksum)
{
@@ -154,6 +167,9 @@ class ChecksumsContext implements \Behat\Behat\Context\Context {
/**
* @Given User :user copied file :source to :destination
+ * @param string $user
+ * @param string $source
+ * @param string $destination
*/
public function userCopiedFileTo($user, $source, $destination)
{
@@ -204,6 +220,12 @@ class ChecksumsContext implements \Behat\Behat\Context\Context {
/**
* @Given user :user uploads chunk file :num of :total with :data to :destination with checksum :checksum
+ * @param string $user
+ * @param int $num
+ * @param int $total
+ * @param string $data
+ * @param string $destination
+ * @param string $checksum
*/
public function userUploadsChunkFileOfWithToWithChecksum($user, $num, $total, $data, $destination, $checksum)
{