/**
  * @covers ilRoomSharingRoom::create
  */
 public function testCreate()
 {
     self::$DBMock->method("insertRoom")->willReturn(999);
     $newRoom = new ilRoomSharingRoom(1, 23, true, self::$DBMock);
     $newRoom->setName('Joga');
     $newRoom->setType('Fitness');
     // Min Alloc not given
     $newRoom->setMaxAlloc(20);
     $newRoom->setFileId(300);
     $newRoom->setBuildingId(809);
     $newRoom->addAttribute(1, 3);
     $newRoom->addAttribute(4, 1);
     self::$DBMock->expects($this->once())->method('insertRoom')->with($this->equalTo('Joga'), $this->equalTo('Fitness'), $this->equalTo(0), $this->equalTo(20), $this->equalTo(300), $this->equalTo(809));
     self::$DBMock->expects($this->exactly(2))->method('insertAttributeForRoom')->withConsecutive(array($this->equalTo(999), $this->equalTo(1), $this->equalTo(3)), array($this->equalTo(999), $this->equalTo(4), $this->equalTo(1)));
     $newRoom->create();
 }