tests/unit/lib/addressbookTest.php 1 location
|
@@ 139-150 (lines=12) @@
|
136 |
|
|
137 |
|
} |
138 |
|
|
139 |
|
public function testUpdate() { |
140 |
|
|
141 |
|
$this->assertTrue( |
142 |
|
$this->ab->update(array('displayname' => 'bar')) |
143 |
|
); |
144 |
|
|
145 |
|
$this->assertEquals('bar', $this->backend->addressBooks[0]['displayname']); |
146 |
|
$props = $this->ab->getMetaData(); |
147 |
|
|
148 |
|
return $this->ab; |
149 |
|
|
150 |
|
} |
151 |
|
|
152 |
|
/** |
153 |
|
* @depends testUpdate |
tests/unit/lib/backend/backend_test.php 1 location
|
@@ 100-110 (lines=11) @@
|
97 |
|
|
98 |
|
} |
99 |
|
|
100 |
|
public function testUpdateAddressBook() { |
101 |
|
|
102 |
|
$this->assertTrue( |
103 |
|
$this->backend->updateAddressBook('foo', array('displayname' => 'bar')) |
104 |
|
); |
105 |
|
|
106 |
|
$this->assertEquals('bar', $this->backend->addressBooks[0]['displayname']); |
107 |
|
|
108 |
|
return $this->backend; |
109 |
|
|
110 |
|
} |
111 |
|
|
112 |
|
public function testUpdateAddressBookFail() { |
113 |
|
|