/**
  * @covers ilRoomSharingRoom::read
  * @covers ilRoomSharingRoom::getId
  * @covers ilRoomSharingRoom::getName
  * @covers ilRoomSharingRoom::getType
  * @covers ilRoomSharingRoom::getMinAlloc
  * @covers ilRoomSharingRoom::getMaxAlloc
  * @covers ilRoomSharingRoom::getFileId
  * @covers ilRoomSharingRoom::getBuildingId
  * @covers ilRoomSharingRoom::getPoolId
  * @covers ilRoomSharingRoom::getAttributes
  * @covers ilRoomSharingRoom::getAllAvailableAttributes
  * @covers ilRoomSharingRoom::getBookedTimes
  */
 public function testRead()
 {
     $allAvailableAttributes = self::$room->getAllAvailableAttributes();
     $this->assertEquals(6, count($allAvailableAttributes));
     $this->assertEquals(1, self::$room->getId());
     $this->assertEquals('I012 A', self::$room->getName());
     $this->assertEquals('Saal', self::$room->getType());
     $this->assertEquals(20, self::$room->getMinAlloc());
     $this->assertEquals(100, self::$room->getMaxAlloc());
     $this->assertEquals(450, self::$room->getFileId());
     $this->assertEquals(230, self::$room->getBuildingId());
     $this->assertEquals(1, self::$room->getPoolId());
     $roomAttributes = self::$room->getAttributes();
     $this->assertEquals(3, count($roomAttributes));
     $firstAttr = $roomAttributes[0];
     $this->assertEquals(1, $firstAttr['id']);
     $this->assertEquals('Beamer', $firstAttr['name']);
     $this->assertEquals(3, $firstAttr['count']);
     $secondAttr = $roomAttributes[1];
     $this->assertEquals(4, $secondAttr['id']);
     $this->assertEquals('Fernseher', $secondAttr['name']);
     $this->assertEquals(1, $secondAttr['count']);
     $thirdAttr = $roomAttributes[2];
     $this->assertEquals(2, $thirdAttr['id']);
     $this->assertEquals('Whiteboard', $thirdAttr['name']);
     $this->assertEquals(2, $thirdAttr['count']);
     $expectedBookings = array(array('id' => 12, 'date_from' => '2014-12-09 15:00:00.000000', 'date_to' => '2014-12-09 18:00:00.000000', 'seq_id' => null, 'room_id' => 1, 'pool_id' => 1, 'user_id' => 3, 'subject' => 'Test', 'public_booking' => 0, 'bookingcomment' => 'Ist eine Testbuchung', 'calendar_entry_id' => 23));
     $this->assertEquals($expectedBookings, self::$room->getBookedTimes());
 }