public function test_create_method_must_return_valid_place_instance() { $place = ["Codigo" => "OBR", "Nombre" => "Cd. Obregon"]; $newPlace = PlaceFactory::create($place); $this->assertInstanceOf('Ochoa\\Type\\Place', $newPlace); $this->assertEquals($place["Codigo"], $newPlace->getId()); $this->assertEquals($place["Nombre"], $newPlace->getDescription()); }
public function test_create_method_must_return_valid_place_instance() { $place = ["idField" => "OBR", "descriptionField" => "Cd. Obregon"]; $newPlace = PlaceFactory::create($place); $this->assertInstanceOf('Tufesa\\Service\\Type\\Place', $newPlace); $this->assertEquals($place["idField"], $newPlace->getId()); $this->assertEquals($place["descriptionField"], $newPlace->getDescription()); }