class TestLibraryDiscoveryParser
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php \Drupal\Tests\Core\Asset\TestLibraryDiscoveryParser
- 8.9.x core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php \Drupal\Tests\Core\Asset\TestLibraryDiscoveryParser
- 11.x core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php \Drupal\Tests\Core\Asset\TestLibraryDiscoveryParser
Wraps the tested class to mock the external dependencies.
Hierarchy
- class \Drupal\Tests\Core\Asset\TestLibraryDiscoveryParser extends \Drupal\Core\Asset\LibraryDiscoveryParser
Expanded class hierarchy of TestLibraryDiscoveryParser
File
-
core/
tests/ Drupal/ Tests/ Core/ Asset/ LibraryDiscoveryParserTest.php, line 870
Namespace
Drupal\Tests\Core\AssetView source
class TestLibraryDiscoveryParser extends LibraryDiscoveryParser {
protected $validUris;
protected function fileValidUri($source) {
return $this->validUris[$source] ?? FALSE;
}
public function setFileValidUri($source, $valid) {
$this->validUris[$source] = $valid;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestLibraryDiscoveryParser::$validUris | protected | property | |
TestLibraryDiscoveryParser::fileValidUri | protected | function | |
TestLibraryDiscoveryParser::setFileValidUri | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.