@@ -184,7 +184,7 @@ public function testRenameFailException()
184184 public function testDeleteDir ()
185185 {
186186 $ mock = $ this ->getClient ();
187- $ mock ->shouldReceive ('request ' )->with ('DELETE ' , 'some/dirname ' )->once ()->andReturn (['statusCode ' => 200 ]);
187+ $ mock ->shouldReceive ('request ' )->with ('DELETE ' , 'some/dirname/ ' )->once ()->andReturn (['statusCode ' => 200 ]);
188188 $ adapter = new WebDAVAdapter ($ mock );
189189 $ result = $ adapter ->deleteDir ('some/dirname ' );
190190 $ this ->assertTrue ($ result );
@@ -193,7 +193,7 @@ public function testDeleteDir()
193193 public function testDeleteDirFailNotFound ()
194194 {
195195 $ mock = $ this ->getClient ();
196- $ mock ->shouldReceive ('request ' )->with ('DELETE ' , 'some/dirname ' )->once ()->andThrow ('Sabre\DAV\Exception\NotFound ' );
196+ $ mock ->shouldReceive ('request ' )->with ('DELETE ' , 'some/dirname/ ' )->once ()->andThrow ('Sabre\DAV\Exception\NotFound ' );
197197 $ adapter = new WebDAVAdapter ($ mock );
198198 $ result = $ adapter ->deleteDir ('some/dirname ' );
199199 $ this ->assertFalse ($ result );
@@ -202,7 +202,7 @@ public function testDeleteDirFailNotFound()
202202 public function testDeleteDirFailNot200Status ()
203203 {
204204 $ mock = $ this ->getClient ();
205- $ mock ->shouldReceive ('request ' )->with ('DELETE ' , 'some/dirname ' )->once ()->andReturn (['statusCode ' => 403 ]);
205+ $ mock ->shouldReceive ('request ' )->with ('DELETE ' , 'some/dirname/ ' )->once ()->andReturn (['statusCode ' => 403 ]);
206206 $ adapter = new WebDAVAdapter ($ mock );
207207 $ result = $ adapter ->deleteDir ('some/dirname ' );
208208 $ this ->assertFalse ($ result );
0 commit comments