Definition at line 5 of file TestUtil.php.
◆ deleteSQLiteDB()
static Sabre\CardDAV\TestUtil::deleteSQLiteDB |
( |
| ) |
|
|
static |
Definition at line 41 of file TestUtil.php.
41 {
42 $sqliteTest = new Backend\PDOSqliteTest();
43 $pdo = $sqliteTest->tearDown();
44 }
References $pdo.
◆ getBackend()
static Sabre\CardDAV\TestUtil::getBackend |
( |
| ) |
|
|
static |
Definition at line 7 of file TestUtil.php.
7 {
8
9 $backend = new Backend\PDO(self::getSQLiteDB());
10 return $backend;
11
12 }
◆ getSQLiteDB()
static Sabre\CardDAV\TestUtil::getSQLiteDB |
( |
| ) |
|
|
static |
Definition at line 14 of file TestUtil.php.
14 {
15
16 $pdo = Backend\PDOSqliteTest::getSQLite();
17
18
19 $backend =
new Backend\PDO(
$pdo);
20 $addressbookId = $backend->createAddressBook(
21 'principals/user1',
22 'UUID-123467',
23 [
24 '{DAV:}displayname' => 'user1 addressbook',
25 '{urn:ietf:params:xml:ns:carddav}addressbook-description' => 'AddressBook description',
26 ]
27 );
28 $backend->createAddressBook(
29 'principals/user1',
30 'UUID-123468',
31 [
32 '{DAV:}displayname' => 'user1 addressbook2',
33 '{urn:ietf:params:xml:ns:carddav}addressbook-description' => 'AddressBook description',
34 ]
35 );
36 $backend->createCard($addressbookId, 'UUID-2345', self::getTestCardData());
38
39 }
References $pdo.
◆ getTestCardData()
static Sabre\CardDAV\TestUtil::getTestCardData |
( |
| ) |
|
|
static |
Definition at line 46 of file TestUtil.php.
46 {
47
48 $addressbookData = 'BEGIN:VCARD
49VERSION:3.0
50PRODID:-//Acme Inc.//RoadRunner 1.0//EN
51FN:Wile E. Coyote
52N:Coyote;Wile;Erroll;;
53ORG:Acme Inc.
54UID:39A6B5ED-DD51-4AFE-A683-C35EE3749627
55REV:2012-06-20T07:00:39+00:00
56END:VCARD';
57
58 return $addressbookData;
59
60 }
The documentation for this class was generated from the following file:
- libs/composer/vendor/sabre/dav/tests/Sabre/CardDAV/TestUtil.php