@@ -162,39 +162,6 @@ public function testPretty()
162
162
$ this ->assertInstanceOf (LfmItem::class, $ path ->pretty ('foo ' ));
163
163
}
164
164
165
- public function testDelete ()
166
- {
167
- $ storage = m::mock (LfmStorage::class);
168
- $ storage ->shouldReceive ('isDirectory ' )->andReturn (true );
169
- $ storage ->shouldReceive ('deleteDirectory ' )->andReturn ('folder_deleted ' );
170
-
171
- $ helper = m::mock (Lfm::class);
172
- $ helper ->shouldReceive ('getStorage ' )->with ('files/bar ' )->andReturn ($ storage );
173
- $ helper ->shouldReceive ('getCategoryName ' )->andReturn ('files ' );
174
- $ helper ->shouldReceive ('input ' )->with ('working_dir ' )->andReturn ('/bar ' );
175
- $ helper ->shouldReceive ('isRunningOnWindows ' )->andReturn (false );
176
- $ helper ->shouldReceive ('ds ' )->andReturn ('/ ' );
177
-
178
- $ path1 = new LfmPath ($ helper );
179
-
180
- $ this ->assertEquals ('folder_deleted ' , $ path1 ->delete ());
181
-
182
- $ storage = m::mock (LfmStorage::class);
183
- $ storage ->shouldReceive ('isDirectory ' )->andReturn (false );
184
- $ storage ->shouldReceive ('delete ' )->andReturn ('file_deleted ' );
185
-
186
- $ helper = m::mock (Lfm::class);
187
- $ helper ->shouldReceive ('getStorage ' )->with ('files/bar ' )->andReturn ($ storage );
188
- $ helper ->shouldReceive ('getCategoryName ' )->andReturn ('files ' );
189
- $ helper ->shouldReceive ('input ' )->with ('working_dir ' )->andReturn ('/bar ' );
190
- $ helper ->shouldReceive ('isRunningOnWindows ' )->andReturn (false );
191
- $ helper ->shouldReceive ('ds ' )->andReturn ('/ ' );
192
-
193
- $ path2 = new LfmPath ($ helper );
194
-
195
- $ this ->assertEquals ('file_deleted ' , $ path2 ->delete ());
196
- }
197
-
198
165
public function testCreateFolder ()
199
166
{
200
167
$ storage = m::mock (LfmStorage::class);
0 commit comments