public function testIsDictionaryStrategy() { $this->configMock->expects($this->once())->method('dictionaryEnabled')->willReturn(true); $this->assertTrue($this->model->dictionaryEnabled()); }
public function testGetTranslationFilePath() { $this->fileManagerMock->expects($this->once())->method('getTranslationFilePath')->willReturn('frontend/Magento/luma/en_EN'); $this->assertEquals('frontend/Magento/luma/en_EN', $this->model->getTranslationFilePath()); }
/** * Get translation js script * * @return string */ public function getTranslatorScript() { return $this->jsTranslation->render(); }