コード例 #1
0
 public function testIsDictionaryStrategy()
 {
     $this->configMock->expects($this->once())->method('dictionaryEnabled')->willReturn(true);
     $this->assertTrue($this->model->dictionaryEnabled());
 }
コード例 #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());
 }
コード例 #3
0
ファイル: Head.php プロジェクト: aiesh/magento2
 /**
  * Get translation js script
  *
  * @return string
  */
 public function getTranslatorScript()
 {
     return $this->jsTranslation->render();
 }