diff options
Diffstat (limited to 'apps/files_external/3rdparty/icewind/smb/tests/AbstractShare.php')
-rw-r--r-- | apps/files_external/3rdparty/icewind/smb/tests/AbstractShare.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_external/3rdparty/icewind/smb/tests/AbstractShare.php b/apps/files_external/3rdparty/icewind/smb/tests/AbstractShare.php index 117fff1ca19..f8ccb7119ed 100644 --- a/apps/files_external/3rdparty/icewind/smb/tests/AbstractShare.php +++ b/apps/files_external/3rdparty/icewind/smb/tests/AbstractShare.php @@ -331,7 +331,7 @@ abstract class AbstractShare extends \PHPUnit_Framework_TestCase { $this->share->put($this->getTextFile(), $this->root . '/foo.txt'); $dir = $this->share->dir($this->root); $mtime = $dir[0]->getMTime(); - $this->assertTrue(abs($now - $mtime) <= 1, 'Modified time differs by ' . abs($now - $mtime) . ' seconds'); + $this->assertTrue(abs($now - $mtime) <= 2, 'Modified time differs by ' . abs($now - $mtime) . ' seconds'); $this->share->del($this->root . '/foo.txt'); } @@ -531,4 +531,9 @@ abstract class AbstractShare extends \PHPUnit_Framework_TestCase { $this->assertCount(1, $content); $this->assertEquals($name, $content[0]->getName()); } + + public function testStatRoot() { + $info = $this->share->stat('/'); + $this->assertInstanceOf('\Icewind\SMB\IFileInfo', $info); + } } |