/**
  * Is the default view partial correct?
  * Does setting and getting view partial work?
  */
 public function testSetAndGetViewPartial()
 {
     $target = new EmployeesFieldset();
     $this->assertEquals('organizations/form/employees-fieldset', $target->getViewPartial());
     $target->setViewPartial('test1234');
     $this->assertEquals('test1234', $target->getViewPartial());
 }
 /**
  * Creates fieldset
  * {@inheritdoc}
  *
  * @return EmployeesFieldset
  */
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     /* @var $serviceLocator \Zend\ServiceManager\AbstractPluginManager
      * @var $headscript     \Zend\View\Helper\HeadScript */
     $services = $serviceLocator->getServiceLocator();
     $helpers = $services->get('ViewHelperManager');
     $headscript = $helpers->get('headscript');
     $basepath = $helpers->get('basepath');
     $fieldset = new EmployeesFieldset();
     $hydrator = new EntityHydrator();
     $hydrator->addStrategy('employees', new CollectionStrategy());
     $fieldset->setHydrator($hydrator);
     $headscript->appendFile($basepath('Organizations/js/organizations.employees.js'));
     return $fieldset;
 }