From 712b47757af04d6c62fd8da222aa197c23363678 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 26 Nov 2013 12:53:03 +0100 Subject: Updated unit tests for SMB - coverage for touch return value - fixed directory provider to exclude unsupported cases --- tests/lib/files/storage/storage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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')); } -- cgit v1.2.3