Lines Matching refs:this

18         $this->server->addPlugin(new Plugin());
24 $this->assertArrayHasKey(
33 $this->collection =
38 $this->tree = [
39 $this->collection,
47 $result = $this->server->getProperties('/coll', ['{DAV:}supported-report-set']);
48 $this->assertFalse($result['{DAV:}supported-report-set']->has('{DAV:}sync-collection'));
51 $this->collection->addChange(['file1.txt'], [], []);
53 $result = $this->server->getProperties('/coll', ['{DAV:}supported-report-set']);
54 $this->assertTrue($result['{DAV:}supported-report-set']->has('{DAV:}sync-collection'));
60 $result = $this->server->getProperties('/coll', ['{DAV:}sync-token']);
61 $this->assertFalse(isset($result['{DAV:}sync-token']));
64 $this->collection->addChange(['file1.txt'], [], []);
66 $result = $this->server->getProperties('/coll', ['{DAV:}sync-token']);
67 $this->assertTrue(isset($result['{DAV:}sync-token']));
70 $this->collection->addChange(['file1.txt'], [], []);
72 $result = $this->server->getProperties('/normalcoll', ['{DAV:}sync-token']);
73 $this->assertFalse(isset($result['{DAV:}sync-token']));
79 $this->collection->addChange(['file1.txt'], [], []);
96 $response = $this->request($request);
98 $this->assertEquals(207, $response->status, 'Full response body:' . $response->body);
100 $multiStatus = $this->server->xml->parse($response->getBodyAsString());
103 $this->assertEquals(
172 $this->assertEquals(2, count($responses), 'We expected exactly 2 {DAV:}response');
176 $this->assertNull($response->getHttpStatus());
177 $this->assertEquals('/coll/file2.txt', $response->getHref());
178 $this->assertEquals([
186 $this->assertEquals('404', $response->getHttpStatus());
187 $this->assertEquals('/coll/file3.txt', $response->getHref());
188 $this->assertEquals([], $response->getResponseProperties());
195 $this->collection->addChange(['file1.txt'], [], []);
197 $this->collection->addChange([], ['file2.txt'], ['file3.txt']);
219 $response = $this->request($request);
221 $this->assertEquals(207, $response->status, 'Full response body:' . $response->body);
223 $multiStatus = $this->server->xml->parse(
228 $this->assertEquals(
285 $this->assertEquals(2, count($responses), 'We expected exactly 2 {DAV:}response');
289 $this->assertNull($response->getHttpStatus());
290 $this->assertEquals('/coll/file2.txt', $response->getHref());
291 $this->assertEquals([
299 $this->assertEquals('404', $response->getHttpStatus());
300 $this->assertEquals('/coll/file3.txt', $response->getHref());
301 $this->assertEquals([], $response->getResponseProperties());
326 $response = $this->request($request);
330 $this->assertEquals(415, $response->status, 'Full response body:' . $response->body);
355 $response = $this->request($request);
359 $this->assertEquals(415, $response->status, 'Full response body:' . $response->body);
365 $this->collection->addChange(['file1.txt'], [], []);
385 $response = $this->request($request);
389 $this->assertEquals(403, $response->status, 'Full response body:' . $response->body);
394 $this->collection->addChange(['file1.txt'], [], []);
414 $response = $this->request($request);
418 $this->assertEquals(403, $response->status, 'Full response body:' . $response->body);
442 $response = $this->request($request);
446 $this->assertEquals(400, $response->status, 'Full response body:' . $response->body);
452 $this->collection->addChange(['file1.txt'], [], []);
469 $response = $this->request($request);
473 $this->assertEquals(400, $response->status, 'Full response body:' . $response->body);
479 $this->collection->addChange(['file1.txt'], [], []);
485 $response = $this->request($request);
490 $this->assertEquals(403, $response->status);
496 $this->collection->addChange(['file1.txt'], [], []);
502 $response = $this->request($request);
507 $this->assertEquals(403, $response->status);
513 $this->collection->addChange(['file1.txt'], [], []);
519 $response = $this->request($request);
521 $this->assertEquals(412, $response->status);