File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
apps/dav/tests/unit/Connector/Sabre Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 2121use OCP \Files \ForbiddenException ;
2222use OCP \Files \InvalidPathException ;
2323use OCP \Files \Mount \IMountPoint ;
24+ use OCP \Files \Storage \IStorage ;
2425use OCP \Files \StorageNotAvailableException ;
2526use PHPUnit \Framework \MockObject \MockObject ;
2627use Test \Traits \UserTrait ;
@@ -63,12 +64,16 @@ class DirectoryTest extends \Test\TestCase {
6364
6465 private View &MockObject $ view ;
6566 private FileInfo &MockObject $ info ;
67+ private IStorage &MockObject $ storage ;
6668
6769 protected function setUp (): void {
6870 parent ::setUp ();
6971
7072 $ this ->view = $ this ->createMock (View::class);
7173 $ this ->info = $ this ->createMock (FileInfo::class);
74+ $ this ->storage = $ this ->createMock (IStorage::class);
75+ $ this ->info ->method ('getStorage ' )
76+ ->willReturn ($ this ->storage );
7277 $ this ->info ->method ('isReadable ' )
7378 ->willReturn (true );
7479 $ this ->info ->method ('getType ' )
You can’t perform that action at this time.
0 commit comments