You are here

public function TestLibraryDiscoveryParser::setFileValidUri 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::setFileValidUri()
  2. 9 core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php \Drupal\Tests\Core\Asset\TestLibraryDiscoveryParser::setFileValidUri()

File

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

Class

TestLibraryDiscoveryParser
Wraps the tested class to mock the external dependencies.

Namespace

Drupal\Tests\Core\Asset

Code

public function setFileValidUri($source, $valid) {
  $this->validUris[$source] = $valid;
}