function ExtensionPathResolverTest::testExtensionPathResolvingPath

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Bootstrap/ExtensionPathResolverTest.php \Drupal\KernelTests\Core\Bootstrap\ExtensionPathResolverTest::testExtensionPathResolvingPath()
  2. 11.x core/tests/Drupal/KernelTests/Core/Bootstrap/ExtensionPathResolverTest.php \Drupal\KernelTests\Core\Bootstrap\ExtensionPathResolverTest::testExtensionPathResolvingPath()

@covers ::getPath

File

core/tests/Drupal/KernelTests/Core/Bootstrap/ExtensionPathResolverTest.php, line 51

Class

ExtensionPathResolverTest
Tests that extension path resolver works correctly.

Namespace

Drupal\KernelTests\Core\Bootstrap

Code

public function testExtensionPathResolvingPath() : void {
    $this->assertSame('core/modules/system/tests/modules/driver_test', \Drupal::service('extension.list.module')->getPath('driver_test'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.