function ExtensionListTest::testGetPath

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::testGetPath()
  2. 8.9.x core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::testGetPath()
  3. 11.x 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 175

Class

ExtensionListTest
@coversDefaultClass \Drupal\Core\Extension\ExtensionList[[api-linebreak]] @group Extension

Namespace

Drupal\Tests\Core\Extension

Code

public function testGetPath() : void {
  $test_extension_list = $this->setupTestExtensionList();
  $path = $test_extension_list->getPath('test_name');
  $this->assertEquals('example/test_name', $path);
}

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