You are here

public function ExtensionListTest::testGetPathname in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::testGetPathname()

@covers ::getPathname

File

core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php, line 152

Class

ExtensionListTest
@coversDefaultClass \Drupal\Core\Extension\ExtensionList @group Extension

Namespace

Drupal\Tests\Core\Extension

Code

public function testGetPathname() {
  $test_extension_list = $this
    ->setupTestExtensionList();
  $pathname = $test_extension_list
    ->getPathname('test_name');
  $this
    ->assertEquals('example/test_name/test_name.info.yml', $pathname);
}