Esempio n. 1
0
 /**
  * @test
  * @return void
  */
 public function testGetFullPath()
 {
     $fileServiceName = 'file_service';
     $fullPath = '/full/path';
     $customization = $this->getMockBuilder('Magento\\Framework\\View\\Design\\Theme\\Customization\\FileInterface')->getMock();
     $this->model->setData('file_type', $fileServiceName);
     $this->fileServiceFactory->expects($this->once())->method('create')->with($fileServiceName)->willReturn($customization);
     $customization->expects($this->once())->method('getFullPath')->willReturn($fullPath);
     $this->assertEquals($fullPath, $this->model->getFullPath());
 }