function BlockRebuildTest::testRebuildNoInvalidBlocks
Same name in other branches
- 9 core/modules/block/tests/src/Kernel/BlockRebuildTest.php \Drupal\Tests\block\Kernel\BlockRebuildTest::testRebuildNoInvalidBlocks()
- 8.9.x core/modules/block/tests/src/Kernel/BlockRebuildTest.php \Drupal\Tests\block\Kernel\BlockRebuildTest::testRebuildNoInvalidBlocks()
- 11.x core/modules/block/tests/src/Kernel/BlockRebuildTest.php \Drupal\Tests\block\Kernel\BlockRebuildTest::testRebuildNoInvalidBlocks()
@covers ::block_rebuild
File
-
core/
modules/ block/ tests/ src/ Kernel/ BlockRebuildTest.php, line 60
Class
- BlockRebuildTest
- Tests block_rebuild().
Namespace
Drupal\Tests\block\KernelCode
public function testRebuildNoInvalidBlocks() : void {
$this->placeBlock('system_powered_by_block', [
'region' => 'content',
]);
block_rebuild();
$messages = \Drupal::messenger()->all();
\Drupal::messenger()->deleteAll();
$this->assertEquals([], $messages);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.