public function ExtensionListTest::testGetPath in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::testGetPath()
- 9 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::testGetPath()
@covers ::getPath
File
- core/
tests/ Drupal/ Tests/ Core/ Extension/ ExtensionListTest.php, line 173
Class
- ExtensionListTest
- @coversDefaultClass \Drupal\Core\Extension\ExtensionList @group Extension
Namespace
Drupal\Tests\Core\ExtensionCode
public function testGetPath() {
$test_extension_list = $this
->setupTestExtensionList();
$path = $test_extension_list
->getPath('test_name');
$this
->assertEquals('example/test_name', $path);
}