diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-11 10:23:11 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-11 13:59:19 +0100 |
commit | 26e974d85980c44c476af1dfc5b56368f4d98f09 (patch) | |
tree | 54e6cff23f699d686bc1f3bb5cde5322586fd904 /build/integration/features/bootstrap/Sharing.php | |
parent | 62b77d8ed0cc1ea8d328f8c26e2ff69da0171a6d (diff) | |
download | nextcloud-server-26e974d85980c44c476af1dfc5b56368f4d98f09.tar.gz nextcloud-server-26e974d85980c44c476af1dfc5b56368f4d98f09.zip |
Fix inheritance of members
Diffstat (limited to 'build/integration/features/bootstrap/Sharing.php')
-rw-r--r-- | build/integration/features/bootstrap/Sharing.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/build/integration/features/bootstrap/Sharing.php b/build/integration/features/bootstrap/Sharing.php index dede98157d1..5932194d141 100644 --- a/build/integration/features/bootstrap/Sharing.php +++ b/build/integration/features/bootstrap/Sharing.php @@ -1,7 +1,5 @@ <?php -use Behat\Behat\Context\Context; -use Behat\Behat\Context\SnippetAcceptingContext; use GuzzleHttp\Client; use GuzzleHttp\Message\ResponseInterface; @@ -10,6 +8,7 @@ require __DIR__ . '/../../vendor/autoload.php'; trait Sharing{ + use Provisioning; /** @var int */ private $sharingApiVersion = 1; @@ -113,7 +112,7 @@ trait Sharing{ * @When /^Adding expiration date to last share$/ */ public function addingExpirationDate() { - $share_id = $this->lastShareData->data[0]->id; + $share_id = (string) $this->lastShareData->data[0]->id; $fullUrl = $this->baseUrl . "v{$this->apiVersion}.php/apps/files_sharing/api/v{$this->sharingApiVersion}/shares/$share_id"; $client = new Client(); $options = []; @@ -133,7 +132,7 @@ trait Sharing{ * @param \Behat\Gherkin\Node\TableNode|null $body */ public function updatingLastShare($body) { - $share_id = $this->lastShareData->data[0]->id; + $share_id = (string) $this->lastShareData->data[0]->id; $fullUrl = $this->baseUrl . "v{$this->apiVersion}.php/apps/files_sharing/api/v{$this->sharingApiVersion}/shares/$share_id"; $client = new Client(); $options = []; |