You are here

public function BlockStorageUnitTest::testBlockCRUD in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/block/tests/src/Kernel/BlockStorageUnitTest.php \Drupal\Tests\block\Kernel\BlockStorageUnitTest::testBlockCRUD()
  2. 9 core/modules/block/tests/src/Kernel/BlockStorageUnitTest.php \Drupal\Tests\block\Kernel\BlockStorageUnitTest::testBlockCRUD()

Tests CRUD operations.

File

core/modules/block/tests/src/Kernel/BlockStorageUnitTest.php, line 44

Class

BlockStorageUnitTest
Tests the storage of blocks.

Namespace

Drupal\Tests\block\Kernel

Code

public function testBlockCRUD() {
  $this
    ->assertInstanceOf(ConfigEntityStorage::class, $this->controller);

  // Run each test method in the same installation.
  $this
    ->createTests();
  $this
    ->loadTests();
  $this
    ->deleteTests();
}