tests/unit/lib/addressbookTest.php 1 location
|
@@ 80-88 (lines=9) @@
|
77 |
|
|
78 |
|
} |
79 |
|
|
80 |
|
public function testAddChild() { |
81 |
|
|
82 |
|
$carddata = file_get_contents(__DIR__ . '/../data/test2.vcf'); |
83 |
|
$vcard = Reader::read($carddata); |
84 |
|
$id = $this->ab->addChild($vcard); |
85 |
|
$this->assertNotEquals(false, $id); |
86 |
|
|
87 |
|
return $this->ab; |
88 |
|
} |
89 |
|
|
90 |
|
public function testDeleteChild() { |
91 |
|
|
tests/unit/lib/backend/backend_test.php 1 location
|
@@ 158-167 (lines=10) @@
|
155 |
|
|
156 |
|
} |
157 |
|
|
158 |
|
public function testCreateContact() { |
159 |
|
|
160 |
|
$carddata = file_get_contents(__DIR__ . '/../../data/test2.vcf'); |
161 |
|
$vcard = Reader::read($carddata); |
162 |
|
$id = $this->backend->createContact('foo', $vcard); |
163 |
|
|
164 |
|
$this->assertNotEquals(false, $id); |
165 |
|
|
166 |
|
return $this->backend; |
167 |
|
} |
168 |
|
|
169 |
|
/** |
170 |
|
* @depends testCreateContact |