You are here

public function BlockStorageUnitTest::testBlockCRUD in Zircon Profile 8.0

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

Tests CRUD operations.

File

core/modules/block/src/Tests/BlockStorageUnitTest.php, line 47
Contains \Drupal\block\Tests\BlockStorageUnitTest.

Class

BlockStorageUnitTest
Tests the storage of blocks.

Namespace

Drupal\block\Tests

Code

public function testBlockCRUD() {
  $this
    ->assertTrue($this->controller instanceof ConfigEntityStorage, 'The block storage is loaded.');

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