summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CalDAV/ResourceBooking/ResourcePrincipalBackendTest.php
diff options
context:
space:
mode:
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();
}
}