public function BlockManagerTest::testDefinitions in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php \Drupal\Tests\Core\Block\BlockManagerTest::testDefinitions()
- 9 core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php \Drupal\Tests\Core\Block\BlockManagerTest::testDefinitions()
@covers ::getDefinitions
File
- core/
tests/ Drupal/ Tests/ Core/ Block/ BlockManagerTest.php, line 85
Class
- BlockManagerTest
- @coversDefaultClass \Drupal\Core\Block\BlockManager
Namespace
Drupal\Tests\Core\BlockCode
public function testDefinitions() {
$definitions = $this->blockManager
->getDefinitions();
$this
->assertSame([
'broken',
'block1',
'block2',
'block3',
], array_keys($definitions));
}