diff options
author | Georg Ehrke <developer@georgehrke.com> | 2019-08-01 15:05:53 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2019-08-01 15:05:53 +0200 |
commit | 4b4292996ff68f6fa1a18443bf01b7aed300c5f8 (patch) | |
tree | 77aa674705220ee77d742a8a8a7e85d458fc10a4 /apps/dav/tests/unit/CalDAV/ResourceBooking/ResourcePrincipalBackendTest.php | |
parent | 31d6138f4681c322c0a802e541f3b81c28840a74 (diff) | |
download | nextcloud-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.php | 10 |
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(); } } |