summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CalDAV/ResourceBooking/ResourcePrincipalBackendTest.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2019-08-01 15:05:53 +0200
committerGeorg Ehrke <developer@georgehrke.com>2019-08-01 15:05:53 +0200
commit4b4292996ff68f6fa1a18443bf01b7aed300c5f8 (patch)
tree77aa674705220ee77d742a8a8a7e85d458fc10a4 /apps/dav/tests/unit/CalDAV/ResourceBooking/ResourcePrincipalBackendTest.php
parent31d6138f4681c322c0a802e541f3b81c28840a74 (diff)
downloadnextcloud-server-4b4292996ff68f6fa1a18443bf01b7aed300c5f8.tar.gz
nextcloud-server-4b4292996ff68f6fa1a18443bf01b7aed300c5f8.zip
Test resource and room principal backend to check that they provide metadata
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/tests/unit/CalDAV/ResourceBooking/ResourcePrincipalBackendTest.php')
-rw-r--r--apps/dav/tests/unit/CalDAV/ResourceBooking/ResourcePrincipalBackendTest.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/CalDAV/ResourceBooking/ResourcePrincipalBackendTest.php b/apps/dav/tests/unit/CalDAV/ResourceBooking/ResourcePrincipalBackendTest.php
index d3c774417c0..3787e4df951 100644
--- a/apps/dav/tests/unit/CalDAV/ResourceBooking/ResourcePrincipalBackendTest.php
+++ b/apps/dav/tests/unit/CalDAV/ResourceBooking/ResourcePrincipalBackendTest.php
@@ -27,10 +27,16 @@ Class ResourcePrincipalBackendTest extends AbstractPrincipalBackendTest {
public function setUp() {
parent::setUp();
- $this->principalBackend = new ResourcePrincipalBackend($this->dbConnection,
+ $this->principalBackend = new ResourcePrincipalBackend(self::$realDatabase,
$this->userSession, $this->groupManager, $this->logger);
- $this->expectedDbTable = 'calendar_resources';
+
+ $this->mainDbTable = 'calendar_resources';
+ $this->metadataDbTable = 'calendar_resources_md';
+ $this->foreignKey = 'resource_id';
+
$this->principalPrefix = 'principals/calendar-resources';
$this->expectedCUType = 'RESOURCE';
+
+ $this->createTestDatasetInDb();
}
}