function EntityMaskTest::testDelete

Same name in other branches
  1. 8.x-3.x modules/ctools_entity_mask/tests/src/Kernel/EntityMaskTest.php \Drupal\Tests\ctools_entity_mask\Kernel\EntityMaskTest::testDelete()

Tests that deleting a mask entity doesn't throw an exception or anything.

File

modules/ctools_entity_mask/tests/src/Kernel/EntityMaskTest.php, line 202

Class

EntityMaskTest
Basic test of entity type masking.

Namespace

Drupal\Tests\ctools_entity_mask\Kernel

Code

public function testDelete() {
    $block = BlockContent::create([
        'type' => 'basic',
    ]);
    $block->save();
    // Check we created a saved block.
    $id = $block->id();
    $this->assertNotEmpty($id);
    $block->delete();
}