Test resource and room principal backend to check that they provide metadata
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
31d6138f46
commit
4b4292996f
File diff suppressed because it is too large
Load Diff
|
@ -27,10 +27,16 @@ Class ResourcePrincipalBackendTest extends AbstractPrincipalBackendTest {
|
||||||
public function setUp() {
|
public function setUp() {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
$this->principalBackend = new ResourcePrincipalBackend($this->dbConnection,
|
$this->principalBackend = new ResourcePrincipalBackend(self::$realDatabase,
|
||||||
$this->userSession, $this->groupManager, $this->logger);
|
$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->principalPrefix = 'principals/calendar-resources';
|
||||||
$this->expectedCUType = 'RESOURCE';
|
$this->expectedCUType = 'RESOURCE';
|
||||||
|
|
||||||
|
$this->createTestDatasetInDb();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,10 +27,16 @@ Class RoomPrincipalBackendTest extends AbstractPrincipalBackendTest {
|
||||||
public function setUp() {
|
public function setUp() {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
$this->principalBackend = new RoomPrincipalBackend($this->dbConnection,
|
$this->principalBackend = new RoomPrincipalBackend(self::$realDatabase,
|
||||||
$this->userSession, $this->groupManager, $this->logger);
|
$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->principalPrefix = 'principals/calendar-rooms';
|
||||||
$this->expectedCUType = 'ROOM';
|
$this->expectedCUType = 'ROOM';
|
||||||
|
|
||||||
|
$this->createTestDatasetInDb();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue