public function BlockManagerTest::testDefinitions in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php \Drupal\Tests\Core\Block\BlockManagerTest::testDefinitions()
- 10 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 78
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));
}