Skip to content

Commit

Permalink
Restore old WebDAVTests with iscollection property
Browse files Browse the repository at this point in the history
  • Loading branch information
kesselb committed Sep 27, 2019
1 parent bd18ec9 commit dfaaf35
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/WebDAVTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use League\Flysystem\Config;
use League\Flysystem\Filesystem;
use League\Flysystem\WebDAV\WebDAVAdapter;
use Sabre\DAV\Xml\Property\ResourceType;

class WebDAVTests extends PHPUnit_Framework_TestCase
{
Expand Down Expand Up @@ -211,17 +210,19 @@ public function testListContents()
[],
'filename' => [
'{DAV:}getcontentlength' => "20",
'{DAV:}iscollection' => "0",
],
'dirname' => [
'{DAV:}getcontentlength' => "0",
'{DAV:}resourcetype' => new ResourceType('{DAV:}collection'),
'{DAV:}iscollection' => "1",
],
];

$second = [
[],
'deeper_filename.ext' => [
'{DAV:}getcontentlength' => "20",
'{DAV:}iscollection' => "0",
],
];
$mock->shouldReceive('propFind')->twice()->andReturn($first, $second);
Expand All @@ -237,7 +238,7 @@ public function testListContentsWithPlusInName()
[],
'bucketname/dirname+something' => [
'{DAV:}getcontentlength' => "0",
'{DAV:}resourcetype' => new ResourceType('{DAV:}collection'),
'{DAV:}iscollection' => "1",
],
];

Expand Down

0 comments on commit dfaaf35

Please sign in to comment.