summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-26 12:53:03 +0100
committerVincent Petry <pvince81@owncloud.com>2013-11-26 12:53:03 +0100
commit712b47757af04d6c62fd8da222aa197c23363678 (patch)
tree7eddf532feb766f4e79f1c12c544f40cc4dc15a5 /tests/lib
parente102eec89a51af807c1802fb8e382b68e999ebe8 (diff)
downloadnextcloud-server-712b47757af04d6c62fd8da222aa197c23363678.tar.gz
nextcloud-server-712b47757af04d6c62fd8da222aa197c23363678.zip
Updated unit tests for SMB
- coverage for touch return value - fixed directory provider to exclude unsupported cases
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/files/storage/storage.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/files/storage/storage.php b/tests/lib/files/storage/storage.php
index 6c433e95475..5b5b8556859 100644
--- a/tests/lib/files/storage/storage.php
+++ b/tests/lib/files/storage/storage.php
@@ -236,7 +236,8 @@ abstract class Storage extends \PHPUnit_Framework_TestCase {
public function testTouchCreateFile() {
$this->assertFalse($this->instance->file_exists('foo'));
- $this->instance->touch('foo');
+ // returns true on success
+ $this->assertTrue($this->instance->touch('foo'));
$this->assertTrue($this->instance->file_exists('foo'));
}