public function BlockRebuildTest::testRebuildNoBlocks in Drupal 9
Same name and namespace in other branches
- 8 core/modules/block/tests/src/Kernel/BlockRebuildTest.php \Drupal\Tests\block\Kernel\BlockRebuildTest::testRebuildNoBlocks()
@covers ::block_rebuild
File
- core/
modules/ block/ tests/ src/ Kernel/ BlockRebuildTest.php, line 48
Class
- BlockRebuildTest
- Tests block_rebuild().
Namespace
Drupal\Tests\block\KernelCode
public function testRebuildNoBlocks() {
block_rebuild();
$messages = \Drupal::messenger()
->all();
\Drupal::messenger()
->deleteAll();
$this
->assertEquals([], $messages);
}