diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-07-05 18:08:56 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-07-11 10:29:03 +0200 |
commit | f1469e34aa8f29a8dbec8e1ae9260fb09777f82f (patch) | |
tree | a0047d15098a475efc84e51c8bb07ea4822b2c08 /tests | |
parent | af20f1dd4b3637f514837df6a2e1c683b7ef775b (diff) | |
download | nextcloud-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.php | 8 |
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+'); + } } |