Lines Matching refs:this
15 $this->backend = new Backend\Mock();
16 $this->plugin = new Plugin(
17 $this->backend
20 $this->server->addPlugin($this->plugin);
26 $this->assertArrayHasKey(
28 $this->plugin->getPluginInfo()
35 $this->server->updateProperties('', ['{DAV:}displayname' => 'hi']);
36 $this->assertEquals([
40 ], $this->backend->data);
49 $this->testSetProperty();
50 $result = $this->server->getProperties('', ['{DAV:}displayname']);
52 $this->assertEquals([
63 $this->testSetProperty();
64 $this->server->emit('afterUnbind', ['']);
65 $this->assertEquals([],$this->backend->data);
71 $this->server->tree->getNodeForPath('files')->createFile('source');
72 $this->server->updateProperties('files/source', ['{DAV:}displayname' => 'hi']);
75 $this->assertHTTPStatus(201, $request);
77 $result = $this->server->getProperties('/files/dest', ['{DAV:}displayname']);
79 $this->assertEquals([
83 $this->server->tree->getNodeForPath('files')->createFile('source');
84 $result = $this->server->getProperties('/files/source', ['{DAV:}displayname']);
86 $this->assertEquals([], $result);
95 $this->plugin->pathFilter = function($path) {
101 $this->server->updateProperties('', ['{DAV:}displayname' => 'hi']);
102 $this->assertEquals([], $this->backend->data);
111 $this->testSetPropertyInFilteredPath();
112 $result = $this->server->getProperties('', ['{DAV:}displayname']);
114 $this->assertEquals([], $result);