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); }
/** * 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(), ''); }
/** * 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, ''); }