You are here

protected function TestLibraryDiscoveryParser::fileValidUri in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php \Drupal\Tests\Core\Asset\TestLibraryDiscoveryParser::fileValidUri()
  2. 9 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 $this->validUris[$source] ?? FALSE;
}