You are here

public function ComponentDiscoveryTest::testGetMainComponents in Lightning Core 8.4

Same name and namespace in other branches
  1. 8.5 tests/src/Kernel/ComponentDiscoveryTest.php \Drupal\Tests\lightning_core\Kernel\ComponentDiscoveryTest::testGetMainComponents()
  2. 8.3 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\Kernel

Code

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);
}