13 $this->tree = new \Sabre\DAV\FS\Directory(SABRE_TEMPDIR);
33 $body =
'<?xml version="1.0"?> 34 <D:lockinfo xmlns:D="DAV:"> 35 <D:lockscope><D:exclusive/></D:lockscope> 36 <D:locktype><D:write/></D:locktype> 50 count($this->locksBackend->getLocks(
'file.txt',
true))
57 'If' =>
'(' .
$response->getHeader(
'Lock-Token') .
')',
61 $this->assertEquals(204, $response->getStatus(), $response->
getBodyAsString());
65 count($this->locksBackend->getLocks(
'file.txt',
true))
testUnlockAfterDelete()
This test first creates a file with LOCK and then deletes it.
foreach($paths as $path) $request
The Request class represents a single HTTP request.
This class may be used as a basis for other webdav-related unittests.
getBodyAsString()
Returns the body as a string.
request($request, $expectedStatus=null)
Makes a request, and returns a response object.
static clearTempDir()
This function deletes all the contents of the temporary directory.