You are here

public function ExtensionListTest::testGetAllAvailableInfo 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::testGetAllAvailableInfo()
  2. 9 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::testGetAllAvailableInfo()

@covers ::getAllAvailableInfo

File

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

Class

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

Namespace

Drupal\Tests\Core\Extension

Code

public function testGetAllAvailableInfo() {
  $test_extension_list = $this
    ->setupTestExtensionList();
  $infos = $test_extension_list
    ->getAllAvailableInfo();
  $this
    ->assertEquals([
    'test_name' => [
      'type' => 'test_extension',
      'core' => '8.x',
      'name' => 'test name',
      'mtime' => 123456789,
    ],
  ], $infos);
}