public function testGetConfigFileRelativePath() { $this->minificationMock->expects($this->any())->method('addMinifiedSign')->willReturnArgument(0); $this->context->expects($this->once())->method('getConfigPath')->will($this->returnValue('path')); $actual = $this->object->getConfigFileRelativePath(); $this->assertSame('_requirejs/path/requirejs-config.js', $actual); }
/** * Create a view asset representing the aggregated configuration file * * @return \Magento\Framework\View\Asset\File */ public function createRequireJsConfigAsset() { $relPath = $this->config->getConfigFileRelativePath(); $this->ensureSourceFile($relPath); return $this->assetRepo->createArbitrary($relPath, ''); }
public function testGetConfigFileRelativePath() { $this->context->expects($this->once())->method('getConfigPath')->will($this->returnValue('path')); $actual = $this->object->getConfigFileRelativePath(); $this->assertSame('_requirejs/path/requirejs-config.js', $actual); }