function BlockManagerTest::testDefinitions

@covers ::getDefinitions

File

core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php, line 90

Class

BlockManagerTest
@coversDefaultClass \Drupal\Core\Block\BlockManager[[api-linebreak]]

Namespace

Drupal\Tests\Core\Block

Code

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.