function ExtensionListTest::testGetList
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::testGetList()
- 8.9.x core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::testGetList()
- 11.x 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 79
Class
- ExtensionListTest
- @coversDefaultClass \Drupal\Core\Extension\ExtensionList @group Extension
Namespace
Drupal\Tests\Core\ExtensionCode
public function testGetList() : void {
$test_extension_list = $this->setupTestExtensionList();
$extensions = $test_extension_list->getList();
$this->assertCount(1, $extensions);
$this->assertEquals('test_name', $extensions['test_name']->getName());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.