summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CalDAV/ResourceBooking/RoomPrincipalBackendTest.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/RoomPrincipalBackendTest.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/RoomPrincipalBackendTest.php')
-rw-r--r--apps/dav/tests/unit/CalDAV/ResourceBooking/RoomPrincipalBackendTest.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/CalDAV/ResourceBooking/RoomPrincipalBackendTest.php b/apps/dav/tests/unit/CalDAV/ResourceBooking/RoomPrincipalBackendTest.php
index a10aaa26b35..9b259c30adf 100644
--- a/apps/dav/tests/unit/CalDAV/ResourceBooking/RoomPrincipalBackendTest.php
+++ b/apps/dav/tests/unit/CalDAV/ResourceBooking/RoomPrincipalBackendTest.php
@@ -27,10 +27,16 @@ Class RoomPrincipalBackendTest extends AbstractPrincipalBackendTest {
public function setUp() {
parent::setUp();
- $this->principalBackend = new RoomPrincipalBackend($this->dbConnection,
+ $this->principalBackend = new RoomPrincipalBackend(self::$realDatabase,
$this->userSession, $this->groupManager, $this->logger);
- $this->expectedDbTable = 'calendar_rooms';
+
+ $this->mainDbTable = 'calendar_rooms';
+ $this->metadataDbTable = 'calendar_rooms_md';
+ $this->foreignKey = 'room_id';
+
$this->principalPrefix = 'principals/calendar-rooms';
$this->expectedCUType = 'ROOM';
+
+ $this->createTestDatasetInDb();
}
}