function BlockManagerTest::testDefinitions
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php \Drupal\Tests\Core\Block\BlockManagerTest::testDefinitions()
- 8.9.x 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 90
Class
- BlockManagerTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Block%21BlockManager.php/class/BlockManager/11.x" title="Manages discovery and instantiation of block plugins." class="local">\Drupal\Core\Block\BlockManager</a>
Namespace
Drupal\Tests\Core\BlockCode
public function testDefinitions() : void {
$definitions = $this->blockManager
->getDefinitions();
$this->assertSame([
'broken',
'block1',
'block2',
'block3',
], array_keys($definitions));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.