示例#1
0
 /**
  * Returns an element or component url
  *
  * @param string $asset The name of the element/component
  *
  * @return string
  */
 public function getAsset($asset)
 {
     return $this->path_resolver->getImportUrl($asset);
 }
 /**
  * @covers ::getImportUrl
  * @dataProvider dataProviderGetImportUrl
  * 
  * @param string $asset
  * @param bool   $debug
  * @param string $expected
  */
 public function testGetImportUrl($asset, $debug, $expected)
 {
     $this->configuration->setDebug($debug);
     $this->assertEquals($expected, $this->fixture->getImportUrl($asset));
 }