public function testGetName() { $this->assertEquals('oro_entity', $this->twigExtension->getName()); }
/** * Formats person name according to locale settings. * * @param NamePrefixInterface|FirstNameInterface|MiddleNameInterface|LastNameInterface|NameSuffixInterface $person * @param string $locale * @return string * * @deprecated since 1.8, use Oro\Bundle\EntityBundle\Twig\EntityExtension::getEntityName */ public function format($person, $locale = null) { return $this->entityExtension->getEntityName($person, $locale); }