Lines Matching refs:this

19         $this->backend = new Backend\Mock();
20 $this->ab = new AddressBook(
21 $this->backend,
34 $this->assertEquals('book1', $this->ab->getName());
40 $card = $this->ab->getChild('card1');
41 $this->assertInstanceOf('Sabre\\CardDAV\\Card', $card);
42 $this->assertEquals('card1', $card->getName());
51 $card = $this->ab->getChild('card3');
57 $cards = $this->ab->getChildren();
58 $this->assertEquals(2, count($cards));
60 $this->assertEquals('card1', $cards[0]->getName());
61 $this->assertEquals('card2', $cards[1]->getName());
70 $this->ab->createDirectory('name');
79 $this->ab->createFile('card2',$file);
81 $this->assertEquals('foo', $this->backend->cards['foo']['card2']);
87 $this->ab->delete();
88 $this->assertEquals(array(), $this->backend->addressBooks);
97 $this->ab->setName('foo');
103 $this->assertNull($this->ab->getLastModified());
112 $this->ab->propPatch($propPatch);
113 $this->assertTrue($propPatch->commit());
115 $this->assertEquals('barrr', $this->backend->addressBooks[0]['{DAV:}displayname']);
121 $props = $this->ab->getProperties(array('{DAV:}displayname'));
122 $this->assertEquals(array(
130 $this->assertEquals('principals/user1', $this->ab->getOwner());
131 $this->assertNull($this->ab->getGroup());
132 $this->assertEquals(array(
143 ), $this->ab->getACL());
152 $this->ab->setACL(array());
158 $this->assertNull(
159 $this->ab->getSupportedPrivilegeSet()
166 $this->assertNull(null, $this->ab->getSyncToken());
171 $this->assertNull($this->ab->getChanges(1,null));
178 $this->markTestSkipped('Sqlite is required for this test to run');
181 $this->assertEquals(2, $ab->getSyncToken());
187 $this->markTestSkipped('Sqlite is required for this test to run');
190 $this->assertEquals(2, $ab->getSyncToken());
196 $this->markTestSkipped('Sqlite is required for this test to run');
199 $this->assertEquals([