You are here

public function ComponentDiscoveryTest::testGetAll in Lightning Core 8.5

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/ComponentDiscoveryTest.php \Drupal\Tests\lightning_core\Kernel\ComponentDiscoveryTest::testGetAll()
  2. 8.4 tests/src/Kernel/ComponentDiscoveryTest.php \Drupal\Tests\lightning_core\Kernel\ComponentDiscoveryTest::testGetAll()

@covers ::getAll

File

tests/src/Kernel/ComponentDiscoveryTest.php, line 38

Class

ComponentDiscoveryTest
@group lightning @group lightning_core

Namespace

Drupal\Tests\lightning_core\Kernel

Code

public function testGetAll() {
  $components = $this->discovery
    ->getAll();
  $this
    ->assertInstanceOf(Extension::class, $components['lightning_core']);
  $this
    ->assertInstanceOf(Extension::class, $components['lightning_search']);
  $this
    ->assertArrayNotHasKey('panels', $components);
  $this
    ->assertArrayNotHasKey('views', $components);
}