Lines Matching refs:this

62         $this->caldavBackend = new CalDAV\Backend\MockScheduling($calendars, $calendarobjects);
66 new CalDAV\CalendarRoot($principalBackend, $this->caldavBackend),
69 $this->request = HTTP\Sapi::createFromServerArray([
72 $this->response = new HTTP\ResponseMock();
74 $this->server = new DAV\Server($tree);
75 $this->server->httpRequest = $this->request;
76 $this->server->httpResponse = $this->response;
78 $this->aclPlugin = new DAVACL\Plugin();
79 $this->server->addPlugin($this->aclPlugin);
83 $this->authPlugin = new DAV\Auth\Plugin($authBackend,'SabreDAV');
85 $this->authPlugin->beforeMethod($this->request, $this->response);
86 $this->server->addPlugin($this->authPlugin);
89 $this->plugin = new CalDAV\Plugin();
90 $this->server->addPlugin($this->plugin);
93 $this->plugin = new Plugin();
94 $this->server->addPlugin($this->plugin);
100 $this->server->httpRequest = new HTTP\Request(
106 $this->assertNull(
107 $this->plugin->httpPost($this->server->httpRequest, $this->server->httpResponse)
114 $this->server->httpRequest = new HTTP\Request(
120 $this->assertNull(
121 $this->plugin->httpPost($this->server->httpRequest, $this->server->httpResponse)
128 $this->server->httpRequest = new HTTP\Request(
134 $this->assertNull(
135 $this->plugin->httpPost($this->server->httpRequest, $this->server->httpResponse)
145 $this->server->httpRequest = new HTTP\Request(
158 $this->server->httpRequest->setBody($body);
159 $this->plugin->httpPost($this->server->httpRequest, $this->server->httpResponse);
168 $this->server->httpRequest = new HTTP\Request(
182 $this->server->httpRequest->setBody($body);
183 $this->plugin->httpPost($this->server->httpRequest, $this->server->httpResponse);
192 $this->server->httpRequest = new HTTP\Request(
208 $this->server->httpRequest->setBody($body);
209 $this->plugin->httpPost($this->server->httpRequest, $this->server->httpResponse);
218 $this->server->httpRequest = new HTTP\Request(
233 $this->server->httpRequest->setBody($body);
234 $this->plugin->httpPost($this->server->httpRequest, $this->server->httpResponse);
243 $this->server->httpRequest = new HTTP\Request(
259 $this->server->httpRequest->setBody($body);
260 $this->plugin->httpPost($this->server->httpRequest, $this->server->httpResponse);
266 $this->server->httpRequest = new HTTP\Request(
285 $this->server->httpRequest->setBody($body);
288 $this->aclPlugin->adminPrincipals[] = 'principals/user1';
290 $this->assertFalse(
291 $this->plugin->httpPost($this->server->httpRequest, $this->response)
294 $this->assertEquals(200, $this->response->status);
295 $this->assertEquals(array(
297 ), $this->response->getHeaders());
308 $this->assertTrue(
309 strpos($this->response->body, $string)!==false,
310 … 'The response body did not contain: ' . $string .'Full response: ' . $this->response->body
314 $this->assertTrue(
315 … strpos($this->response->body, 'FREEBUSY;FBTYPE=BUSY:20110101T080000Z/20110101T090000Z')==false,
328 $this->caldavBackend->deleteCalendar(1);
329 $this->caldavBackend->deleteCalendar(2);
331 $this->server->httpRequest = new HTTP\Request(
349 $this->server->httpRequest->setBody($body);
352 $this->aclPlugin->adminPrincipals[] = 'principals/user1';
354 $this->assertFalse(
355 $this->plugin->httpPost($this->server->httpRequest, $this->response)
358 $this->assertEquals(200, $this->response->status);
359 $this->assertEquals(array(
361 ), $this->response->getHeaders());
369 $this->assertTrue(
370 strpos($this->response->body, $string)!==false,
371 … 'The response body did not contain: ' . $string .'Full response: ' . $this->response->body