You are here

public function ExtensionListTest::testGetList in Drupal 10

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

@covers ::getList

File

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

Class

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

Namespace

Drupal\Tests\Core\Extension

Code

public function testGetList() {
  $test_extension_list = $this
    ->setupTestExtensionList();
  $extensions = $test_extension_list
    ->getList();
  $this
    ->assertCount(1, $extensions);
  $this
    ->assertEquals('test_name', $extensions['test_name']
    ->getName());
}