public function createService(ServiceLocatorInterface $serviceLocator) { $services = $serviceLocator->getServiceLocator(); $translator = $services->get('Translator'); $statusOptions = (new \Auth\Entity\Status())->getOptions($translator); $fieldset = new UserStatusFieldset(); $fieldset->setStatusOptions($statusOptions); return $fieldset; }
public function testHydrator() { $this->assertInstanceOf(\Core\Entity\Hydrator\EntityHydrator::class, $this->fieldset->getHydrator()); }