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()); }
/** * @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; }