public function ComponentDiscoveryTest::testGetAll 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::testGetAll()
- 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\KernelCode
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);
}