Example #1
0
 public function testIsDictionaryStrategy()
 {
     $this->configMock->expects($this->once())->method('dictionaryEnabled')->willReturn(true);
     $this->assertTrue($this->model->dictionaryEnabled());
 }
Example #2
0
 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());
 }
Example #3
0
 /**
  * Get translation js script
  *
  * @return string
  */
 public function getTranslatorScript()
 {
     return $this->jsTranslation->render();
 }