public function ExtensionStreamTest::testDirnameAsParameter in System stream wrapper 8
Tests call of ::dirname() without setting a URI first.
File
- tests/
src/ Kernel/ File/ ExtensionStreamTest.php, line 150
Class
- ExtensionStreamTest
- Tests system stream wrapper functions.
Namespace
Drupal\Tests\system_stream_wrapper\Kernel\FileCode
public function testDirnameAsParameter() {
// Set 'minimal' as installed profile for the purposes of this test.
$this
->setInstallProfile('minimal');
$this
->enableModules([
'minimal',
]);
$this
->assertEquals('module://system', $this->streamWrappers['module']
->dirname('module://system/system.admin.css'));
}