You are here

protected function TestLibraryDiscoveryParser::fileValidUri in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php \Drupal\Tests\Core\Asset\TestLibraryDiscoveryParser::fileValidUri()

File

core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php, line 853
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 fileValidUri($source) {
  return isset($this->validUris[$source]) ? $this->validUris[$source] : FALSE;
}