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') .
')',
65 count($this->locksBackend->getLocks(
'file.txt',
true))
foreach($paths as $path) $request
An exception for terminatinating execution or to throw for unit testing.
This class may be used as a basis for other webdav-related unittests.
request($request, $expectedStatus=null)
Makes a request, and returns a response object.
setUpTree()
Override this to provide your own Tree for your test-case.
testUnlockAfterDelete()
This test first creates a file with LOCK and then deletes it.
The Request class represents a single HTTP request.
static clearTempDir()
This function deletes all the contents of the temporary directory.