/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->type = new FrontendLineItemType(); $this->type->setDataClass(self::DATA_CLASS); $this->type->setLineItemSubscriber($this->getLineItemSubscriber()); }
/** * @return FrontendLineItemType */ protected function getParentForm() { $form = new FrontendLineItemType(); $form->setLineItemSubscriber($this->getLineItemSubscriber()); $form->setDataClass(self::DATA_CLASS); return $form; }