Added check for /textfile0.txt
This commit is contained in:
parent
1d7a2aa9f9
commit
93f4524a91
|
@ -97,6 +97,15 @@ trait WebDav{
|
||||||
PHPUnit_Framework_Assert::assertEquals($content, (string)$this->response->getBody());
|
PHPUnit_Framework_Assert::assertEquals($content, (string)$this->response->getBody());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Then /^Downloaded content when downloading file "([^"]*)" with range "([^"]*)" should be "([^"]*)"$/
|
||||||
|
*/
|
||||||
|
public function downloadedContentWhenDownloadindShouldBe($fileSource, $range, $content){
|
||||||
|
$this->downloadFileWithRange($fileSource, $range);
|
||||||
|
$this->downloadedContentShouldBe($content);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*Returns the elements of a propfind, $folderDepth requires 1 to see elements without children*/
|
/*Returns the elements of a propfind, $folderDepth requires 1 to see elements without children*/
|
||||||
public function listFolder($user, $path, $folderDepth){
|
public function listFolder($user, $path, $folderDepth){
|
||||||
$fullUrl = substr($this->baseUrl, 0, -4);
|
$fullUrl = substr($this->baseUrl, 0, -4);
|
||||||
|
|
|
@ -396,6 +396,27 @@ Feature: sharing
|
||||||
And As an "user2"
|
And As an "user2"
|
||||||
When Downloading file "/common/sub/textfile0.txt" with range "bytes=9-17"
|
When Downloading file "/common/sub/textfile0.txt" with range "bytes=9-17"
|
||||||
Then Downloaded content should be "test text"
|
Then Downloaded content should be "test text"
|
||||||
|
And Downloaded content when downloading file "/textfile0.txt" with range "bytes=9-17" should be "test text"
|
||||||
|
And user "user2" should see following elements
|
||||||
|
| /common/sub/textfile0.txt |
|
||||||
|
|
||||||
|
Scenario: Share a file by multiple channels
|
||||||
|
Given As an "admin"
|
||||||
|
And user "user0" exists
|
||||||
|
And user "user1" exists
|
||||||
|
And user "user2" exists
|
||||||
|
And group "group0" exists
|
||||||
|
And user "user1" belongs to group "group0"
|
||||||
|
And user "user2" belongs to group "group0"
|
||||||
|
And user "user0" created a folder "/common"
|
||||||
|
And user "user0" created a folder "/common/sub"
|
||||||
|
And file "common" of user "user0" is shared with group "group0"
|
||||||
|
And file "textfile0.txt" of user "user1" is shared with user "user2"
|
||||||
|
And User "user1" moved file "/textfile0.txt" to "/common/textfile0.txt"
|
||||||
|
And User "user1" moved file "/common/textfile0.txt" to "/common/sub/textfile0.txt"
|
||||||
|
And As an "user2"
|
||||||
|
When Downloading file "/textfile0.txt" with range "bytes=9-17"
|
||||||
|
Then Downloaded content should be "test text"
|
||||||
And user "user2" should see following elements
|
And user "user2" should see following elements
|
||||||
| /common/sub/textfile0.txt |
|
| /common/sub/textfile0.txt |
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue