summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-07-05 18:08:56 +0200
committerJulius Härtl <jus@bitgrid.net>2018-07-11 10:29:03 +0200
commitf1469e34aa8f29a8dbec8e1ae9260fb09777f82f (patch)
treea0047d15098a475efc84e51c8bb07ea4822b2c08 /tests
parentaf20f1dd4b3637f514837df6a2e1c683b7ef775b (diff)
downloadnextcloud-server-f1469e34aa8f29a8dbec8e1ae9260fb09777f82f.tar.gz
nextcloud-server-f1469e34aa8f29a8dbec8e1ae9260fb09777f82f.zip
Add fopen method to ISimpleFile
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/SimpleFS/SimpleFileTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/Files/SimpleFS/SimpleFileTest.php b/tests/lib/Files/SimpleFS/SimpleFileTest.php
index ab4970804a4..aec5052cb4b 100644
--- a/tests/lib/Files/SimpleFS/SimpleFileTest.php
+++ b/tests/lib/Files/SimpleFS/SimpleFileTest.php
@@ -123,4 +123,12 @@ class SimpleFileTest extends \Test\TestCase {
$this->simpleFile->getContent();
}
+
+ public function testFopen() {
+ $this->file->expects($this->once())
+ ->method('fopen')
+ ->with('r+');
+
+ $this->simpleFile->fopen('r+');
+ }
}