public function testGetMixinsFileRelativePath()
 {
     $this->minificationMock->expects($this->any())->method('addMinifiedSign')->willReturnArgument(0);
     $this->context->expects($this->once())->method('getPath')->will($this->returnValue('path'));
     $actual = $this->object->getMixinsFileRelativePath();
     $this->assertSame('path/mage/requirejs/mixins.js', $actual);
 }
示例#2
0
 /**
  * Create a view asset representing the aggregated configuration file
  *
  * @return \Magento\Framework\View\Asset\File
  */
 public function createRequireJsMixinsAsset()
 {
     return $this->assetRepo->createArbitrary($this->config->getMixinsFileRelativePath(), '');
 }
示例#3
0
 /**
  * Create a view asset representing the aggregated configuration file
  *
  * @return \Magento\Framework\View\Asset\File
  */
 public function createRequireJsMixinsAsset()
 {
     $relPath = $this->config->getMixinsFileRelativePath();
     $this->ensureSourceFile($relPath);
     return $this->assetRepo->createArbitrary($relPath, '');
 }