public function testGetMinResolverRelativePath() { $this->minificationMock->expects($this->any())->method('addMinifiedSign')->willReturnArgument(0); $this->context->expects($this->once())->method('getConfigPath')->will($this->returnValue('path')); $actual = $this->object->getMinResolverRelativePath(); $this->assertSame('path/requirejs-min-resolver.js', $actual); }
/** * Create '.min' files resolver asset * * @return \Magento\Framework\View\Asset\File */ public function createMinResolverAsset() { $relPath = $this->config->getMinResolverRelativePath(); $this->ensureMinResolverFile($relPath); return $this->assetRepo->createArbitrary($relPath, ''); }