function BlockManagerTest::testSortedDefinitions
@covers ::getSortedDefinitions
File
-
core/
tests/ Drupal/ Tests/ Core/ Block/ BlockManagerTest.php, line 98
Class
- BlockManagerTest
- @coversDefaultClass \Drupal\Core\Block\BlockManager[[api-linebreak]]
Namespace
Drupal\Tests\Core\BlockCode
public function testSortedDefinitions() : void {
$definitions = $this->blockManager
->getSortedDefinitions();
$this->assertSame([
'block2',
'block3',
'block1',
], array_keys($definitions));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.