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