public function testContentGetterAndSetter() { $entity = new EmailBody(); $entity->setBodyContent('test'); $this->assertEquals('test', $entity->getBodyContent()); }
/** * Get the given email body content * * @Route("/body/{id}", name="oro_email_body", requirements={"id"="\d+"}) * @AclAncestor("oro_email_email_view") */ public function bodyAction(EmailBody $entity) { return new Response($entity->getBodyContent()); }