public function test_seatmap_should_work() { $seatMapData = [["Puesto" => 10, "Disponible" => true]]; $seatMap = SeatMapFactory::create($seatMapData); $this->assertInstanceOf('\\Ochoa\\Type\\SeatMap', $seatMap); $this->assertEquals($seatMap[0]->getId(), $seatMapData[0]["Puesto"]); }
/** * @expectedException InvalidArgumentException */ public function test_create_seat_without_the_available_field_should_raise_an_exception() { $seat = ["_id" => 1234]; SeatMapFactory::createSeat($seat); }