/** * @covers ilRoomSharingRoom::addAttribute */ public function testAddAttribute() { self::$room->addAttribute(3, 4); $this->assertEquals(4, count(self::$room->getAttributes())); $needle = array('id' => 3, 'name' => 'Tafelstifte', 'count' => 4); $this->assertContains($needle, self::$room->getAttributes()); }