You are here

protected function TestLibraryDiscoveryParser::fileValidUri in Drupal 8

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

Wraps \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::isValidUri().

Overrides LibraryDiscoveryParser::fileValidUri

Deprecated

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::isValidUri() instead.

File

core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php, line 684
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;
}