function ExtensionListTest::testGetAllAvailableInfo

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::testGetAllAvailableInfo()
  2. 10 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::testGetAllAvailableInfo()
  3. 9 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::testGetAllAvailableInfo()
  4. 8.9.x core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::testGetAllAvailableInfo()

Tests get all available info.

File

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

Class

ExtensionListTest
Tests Drupal\Core\Extension\ExtensionList.

Namespace

Drupal\Tests\Core\Extension

Code

public function testGetAllAvailableInfo() : void {
  $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);
}

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