You are here

public function ExtensionListTest::testGetName 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::testGetName()

@covers ::getName

File

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

Class

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

Namespace

Drupal\Tests\Core\Extension

Code

public function testGetName() {
  $test_extension_list = $this
    ->setupTestExtensionList();
  $this
    ->assertEquals('test name', $test_extension_list
    ->getName('test_name'));
}