@@ -27,6 +27,7 @@ public function test__Get()
2727 $ helper ->shouldReceive ('getCategoryName ' )->andReturn ('files ' );
2828 $ helper ->shouldReceive ('input ' )->with ('working_dir ' )->andReturn ('/bar ' );
2929 $ helper ->shouldReceive ('isRunningOnWindows ' )->andReturn (false );
30+ $ helper ->shouldReceive ('ds ' )->andReturn ('/ ' );
3031
3132 $ path = new LfmPath ($ helper );
3233
@@ -43,6 +44,7 @@ public function test__Call()
4344 $ helper ->shouldReceive ('getCategoryName ' )->andReturn ('files ' );
4445 $ helper ->shouldReceive ('input ' )->with ('working_dir ' )->andReturn ('/bar ' );
4546 $ helper ->shouldReceive ('isRunningOnWindows ' )->andReturn (false );
47+ $ helper ->shouldReceive ('ds ' )->andReturn ('/ ' );
4648
4749 $ path = new LfmPath ($ helper );
4850
@@ -78,6 +80,7 @@ public function testPath()
7880 $ helper ->shouldReceive ('input ' )->with ('working_dir ' )->andReturnNull ();
7981 $ helper ->shouldReceive ('getCategoryName ' )->andReturn ('files ' );
8082 $ helper ->shouldReceive ('isRunningOnWindows ' )->andReturn (false );
83+ $ helper ->shouldReceive ('ds ' )->andReturn ('/ ' );
8184
8285 $ storage = m::mock (LfmStorage::class);
8386 $ storage ->shouldReceive ('rootPath ' )->andReturn (realpath (__DIR__ . '/../ ' ) . '/storage/app ' );
@@ -103,24 +106,6 @@ public function testUrl()
103106 $ this ->assertEquals ('/files/foo/foo ' , $ path ->setName ('foo ' )->url ());
104107 }
105108
106- public function testThumbAndAppendPathToFile ()
107- {
108- $ helper = m::mock (Lfm::class);
109- $ helper ->shouldReceive ('getThumbFolderName ' )->andReturn ('thumbs ' );
110- $ helper ->shouldReceive ('isRunningOnWindows ' )->andReturn (false );
111-
112- $ path = new LfmPath ($ helper );
113- $ path ->setName ('baz ' );
114-
115- $ prefix = 'bar ' ;
116-
117- $ this ->assertEquals ($ prefix . '/baz ' , $ path ->appendPathToFile ($ prefix ));
118-
119- $ path ->thumb ();
120-
121- $ this ->assertEquals ($ prefix . '/thumbs/baz ' , $ path ->appendPathToFile ($ prefix ));
122- }
123-
124109 public function testFolders ()
125110 {
126111 $ storage = m::mock (LfmStorage::class);
@@ -134,6 +119,7 @@ public function testFolders()
134119 $ helper ->shouldReceive ('getNameFromPath ' )->andReturn ('bar ' );
135120 $ helper ->shouldReceive ('getThumbFolderName ' )->andReturn ('thumbs ' );
136121 $ helper ->shouldReceive ('isRunningOnWindows ' )->andReturn (false );
122+ $ helper ->shouldReceive ('ds ' )->andReturn ('/ ' );
137123
138124 $ path = new LfmPath ($ helper );
139125
@@ -152,6 +138,7 @@ public function testFiles()
152138 $ helper ->shouldReceive ('getStorage ' )->andReturn ($ storage );
153139 $ helper ->shouldReceive ('getNameFromPath ' )->andReturn ('bar ' );
154140 $ helper ->shouldReceive ('isRunningOnWindows ' )->andReturn (false );
141+ $ helper ->shouldReceive ('ds ' )->andReturn ('/ ' );
155142
156143 $ path = new LfmPath ($ helper );
157144
@@ -180,6 +167,7 @@ public function testDelete()
180167 $ helper ->shouldReceive ('getCategoryName ' )->andReturn ('files ' );
181168 $ helper ->shouldReceive ('input ' )->with ('working_dir ' )->andReturn ('/bar ' );
182169 $ helper ->shouldReceive ('isRunningOnWindows ' )->andReturn (false );
170+ $ helper ->shouldReceive ('ds ' )->andReturn ('/ ' );
183171
184172 $ path1 = new LfmPath ($ helper );
185173
@@ -194,6 +182,7 @@ public function testDelete()
194182 $ helper ->shouldReceive ('getCategoryName ' )->andReturn ('files ' );
195183 $ helper ->shouldReceive ('input ' )->with ('working_dir ' )->andReturn ('/bar ' );
196184 $ helper ->shouldReceive ('isRunningOnWindows ' )->andReturn (false );
185+ $ helper ->shouldReceive ('ds ' )->andReturn ('/ ' );
197186
198187 $ path2 = new LfmPath ($ helper );
199188
@@ -212,6 +201,7 @@ public function testCreateFolder()
212201 $ helper ->shouldReceive ('getCategoryName ' )->andReturn ('files ' );
213202 $ helper ->shouldReceive ('input ' )->with ('working_dir ' )->andReturn ('/bar ' );
214203 $ helper ->shouldReceive ('isRunningOnWindows ' )->andReturn (false );
204+ $ helper ->shouldReceive ('ds ' )->andReturn ('/ ' );
215205
216206 $ path = new LfmPath ($ helper );
217207
@@ -229,6 +219,7 @@ public function testCreateFolderButFolderAlreadyExists()
229219 $ helper ->shouldReceive ('getCategoryName ' )->andReturn ('files ' );
230220 $ helper ->shouldReceive ('input ' )->with ('working_dir ' )->andReturn ('/bar ' );
231221 $ helper ->shouldReceive ('isRunningOnWindows ' )->andReturn (false );
222+ $ helper ->shouldReceive ('ds ' )->andReturn ('/ ' );
232223
233224 $ path = new LfmPath ($ helper );
234225
0 commit comments