Lines Matching refs:propPatch
7 protected $propPatch; variable in Sabre\\DAV\\PropPatchTest
11 $this->propPatch = new PropPatch([
14 $this->assertEquals(['{DAV:}displayname' => 'foo'], $this->propPatch->getMutations());
22 $this->propPatch->handle('{DAV:}displayname', function($value) use (&$hasRan) {
28 $this->assertTrue($this->propPatch->commit());
29 $result = $this->propPatch->getResult();
40 $this->propPatch->handle('{DAV:}displayname', function($value) use (&$hasRan) {
46 $this->assertFalse($this->propPatch->commit());
47 $result = $this->propPatch->getResult();
58 $this->propPatch->handle('{DAV:}displayname', function($value) use (&$hasRan) {
64 $this->assertTrue($this->propPatch->commit());
65 $result = $this->propPatch->getResult();
76 $this->propPatch = new PropPatch(['{DAV:}displayname' => null]);
77 $this->propPatch->handle('{DAV:}displayname', function($value) use (&$hasRan) {
83 $this->assertTrue($this->propPatch->commit());
84 $result = $this->propPatch->getResult();
96 $this->propPatch->handle('{DAV:}foobar', function($value) use (&$hasRan) {
111 $this->propPatch->handleRemaining(function($mutations) use (&$hasRan) {
117 $this->assertTrue($this->propPatch->commit());
118 $result = $this->propPatch->getResult();
128 $this->propPatch->handle('{DAV:}displayname', function() {} );
129 $this->propPatch->handleRemaining(function($mutations) use (&$hasRan) {
139 $this->propPatch->setResultCode('{DAV:}displayname', 201);
140 $this->assertTrue($this->propPatch->commit());
141 $result = $this->propPatch->getResult();
148 $this->propPatch->setResultCode('{DAV:}displayname', 402);
149 $this->assertFalse($this->propPatch->commit());
150 $result = $this->propPatch->getResult();
157 $this->propPatch->setRemainingResultCode(204);
158 $this->assertTrue($this->propPatch->commit());
159 $result = $this->propPatch->getResult();
166 $this->assertFalse($this->propPatch->commit());
167 $result = $this->propPatch->getResult();
176 $this->propPatch->setResultCode('{DAV:}displayname', 402);
177 $this->propPatch->handle('{DAV:}displayname', function($value) use (&$hasRan) {
181 $this->propPatch->commit();
190 $propPatch = new PropPatch([
198 $propPatch->handle('{DAV:}a', function() use (&$calledA) {
202 $propPatch->handle('{DAV:}b', function() use (&$calledB) {
207 $result = $propPatch->commit();
216 ], $propPatch->getResult());
225 $propPatch = new PropPatch([
232 $propPatch->handle('{DAV:}a', function() use (&$calledA) {
235 $propPatch->commit();
241 $propPatch = new PropPatch([
249 … $propPatch->handle(['{DAV:}a', '{DAV:}b', '{DAV:}c'], function($properties) use (&$calledA) {
258 $result = $propPatch->commit();
266 ], $propPatch->getResult());
273 $propPatch = new PropPatch([
281 … $propPatch->handle(['{DAV:}a', '{DAV:}b', '{DAV:}c'], function($properties) use (&$calledA) {
290 $result = $propPatch->commit();
298 ], $propPatch->getResult());
304 $propPatch = new PropPatch([
312 … $propPatch->handle(['{DAV:}a', '{DAV:}b', '{DAV:}c'], function($properties) use (&$calledA) {
326 $result = $propPatch->commit();
334 ], $propPatch->getResult());
343 $propPatch = new PropPatch([
351 … $propPatch->handle(['{DAV:}a', '{DAV:}b', '{DAV:}c'], function($properties) use (&$calledA) {
354 $propPatch->commit();