Exemplo n.º 1
0
 protected function setUp()
 {
     $this->sut = new UserText();
     $entities = [UserText::SINGULAR => [self::ENTITY_KEY => self::ENTITY_SINGLUAR], UserText::PLURAL => [self::ENTITY_KEY => self::ENTITY_PLURAL]];
     $this->sut->addEntityNames($entities);
     $this->sut->addActions(DefinedConstant\Action::getMessages());
     $this->sut->addMessages(DefinedConstant\Message::getMessages());
 }
Exemplo n.º 2
0
 /**
  * @param ServiceLocatorInterface $serviceLocator
  *
  * @return UserTextHelper
  */
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     $userText = new UserTextHelper();
     $userText->addActions(ActionDmCommon::getMessages());
     $userText->addMessages(MessageDmCommon::getMessages());
     $userText->addMessages(MessageDmMailer::getMessages());
     $userText->addEntityNames(EntityNameDmMailer::getMessages());
     return $userText;
 }