public function ComponentDiscoveryTest::testGetMainComponents in Lightning Core 8.5
Same name and namespace in other branches
- 8.3 tests/src/Kernel/ComponentDiscoveryTest.php \Drupal\Tests\lightning_core\Kernel\ComponentDiscoveryTest::testGetMainComponents()
- 8.4 tests/src/Kernel/ComponentDiscoveryTest.php \Drupal\Tests\lightning_core\Kernel\ComponentDiscoveryTest::testGetMainComponents()
@covers ::getMainComponents
File
- tests/
src/ Kernel/ ComponentDiscoveryTest.php, line 50
Class
- ComponentDiscoveryTest
- @group lightning @group lightning_core
Namespace
Drupal\Tests\lightning_core\KernelCode
public function testGetMainComponents() {
$components = $this->discovery
->getMainComponents();
$this
->assertInstanceOf(Extension::class, $components['lightning_core']);
$this
->assertArrayNotHasKey('lightning_contact_form', $components);
$this
->assertArrayNotHasKey('lightning_page', $components);
$this
->assertArrayNotHasKey('lightning_roles', $components);
$this
->assertArrayNotHasKey('lightning_search', $components);
}