You are here

protected function TestLibraryDiscoveryParser::drupalGetPath in Drupal 8

Wraps drupal_get_path().

Overrides LibraryDiscoveryParser::drupalGetPath

File

core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php, line 676
Contains \Drupal\Tests\Core\Asset\LibraryDiscoveryParserTest.

Class

TestLibraryDiscoveryParser
Wraps the tested class to mock the external dependencies.

Namespace

Drupal\Tests\Core\Asset

Code

protected function drupalGetPath($type, $name) {
  return isset($this->paths[$type][$name]) ? $this->paths[$type][$name] : NULL;
}