protected function GlobalLocatorTest::setUp in Libraries API 8.3
Overrides LibraryTypeKernelTestBase::setUp
File
- tests/
src/ Kernel/ ExternalLibrary/ GlobalLocatorTest.php, line 18
Class
- GlobalLocatorTest
- Tests that a global locator can be properly used to load a libraries.
Namespace
Drupal\Tests\libraries\Kernel\ExternalLibraryCode
protected function setUp() {
parent::setUp();
// Assign our test stream (which points to the test php lib) to the asset
// scheme. This gives us a scheme to work with in the test that is not
// used to locate a php lib by default.
$this->container
->set('stream_wrapper.asset_libraries', new TestLibraryFilesStream($this->container
->get('module_handler'), $this->container
->get('string_translation'), 'libraries'));
}