/** * @param \FSi\Bundle\AdminBundle\Admin\CRUD\ListElement $element */ function it_has_template($element) { $element->hasOption('template_list')->willReturn(true); $element->getOption('template_list')->willReturn('this_is_list_template.html.twig'); $this->hasTemplateName()->shouldReturn(true); $this->getTemplateName()->shouldReturn('this_is_list_template.html.twig'); }
/** * {@inheritdoc} */ public function getTemplateName() { return $this->element->getOption('template_list'); }