Пример #1
0
 protected function createFixture(array $data = array())
 {
     $person = new Person('Scheit', '*****@*****.**', 'Philipp', Date::create('21.11.1984'));
     $formPanel = new EntityFormPanel('Person bearbeiten', $this->getTranslationContainer(), new EntityForm($person, $this->getEntityMeta('Psc\\Doctrine\\TestEntities\\Person')->getSaveRequestMeta($person)));
     $formPanel->createComponents();
     $validator = new ComponentsValidator(new Set(array_merge(array('id' => '17', 'birthday' => '21.11.1984', 'name' => 'Scheit', 'firstName' => 'Philipp ', 'email' => '*****@*****.**', 'yearKnown' => 'true'), $data), $person->getSetMeta()), $formPanel->getEntityForm()->getComponents());
     return $validator;
 }