private function generateOrganizationEntity($id, $name, $city, $street, $number) { $org = new Organization(); $name = new OrganizationName($name); $org->setOrganizationName($name); $org->setId($id); $orgContact = new OrganizationContact(); $orgContact->setCity($city)->setStreet($street)->setHouseNumber($number); $org->setContact($orgContact); return $org; }
public function testSetGetContact() { $input = new OrganizationContact(); $this->target->setContact($input); $this->assertSame($this->target->getContact(), $input); }