parent::
setUpBeforeClass();
// @todo Once block_rebuild() is refactored to auto-loadable code, remove
// this require statement.
require_once static::
getDrupalRoot() . '/core/modules/block/block.module';
} /**
* @covers ::block_rebuild
*/
public function testRebuildNoBlocks() { block_rebuild();
$messages = \Drupal::
messenger()->
all();
\Drupal::
messenger()->
deleteAll();
$this->
assertEquals([],
$messages);
} /**
* @covers ::block_rebuild
*/
public function testRebuildNoInvalidBlocks() { $this->
placeBlock('system_powered_by_block',
['region' => 'content'
]);