File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,16 @@ public function testPath()
96
96
public function testUrl ()
97
97
{
98
98
$ helper = m::mock (Lfm::class);
99
- $ helper ->shouldReceive ('getRootFolder ' )->once ()-> andReturn ('/foo ' );
100
- $ helper ->shouldReceive ('input ' )->with ('working_dir ' )->once ()-> andReturnNull ();
99
+ $ helper ->shouldReceive ('getRootFolder ' )->andReturn ('/foo ' );
100
+ $ helper ->shouldReceive ('input ' )->with ('working_dir ' )->andReturnNull ();
101
101
$ helper ->shouldReceive ('getCategoryName ' )->andReturn ('files ' );
102
102
$ helper ->shouldReceive ('isRunningOnWindows ' )->andReturn (false );
103
+ $ helper ->shouldReceive ('ds ' )->andReturn ('/ ' );
104
+
105
+ $ storage = m::mock (LfmStorage::class);
106
+ $ storage ->shouldReceive ('url ' )->andReturn ('/files/foo/foo ' );
107
+
108
+ $ helper ->shouldReceive ('getStorage ' )->andReturn ($ storage );
103
109
104
110
$ path = new LfmPath ($ helper );
105
111
@@ -205,7 +211,7 @@ public function testCreateFolder()
205
211
206
212
$ path = new LfmPath ($ helper );
207
213
208
- $ this ->assertTrue ($ path ->createFolder ('bar ' ));
214
+ $ this ->assertNull ($ path ->createFolder ('bar ' ));
209
215
}
210
216
211
217
public function testCreateFolderButFolderAlreadyExists ()
You can’t perform that action at this time.
0 commit comments