function EntityMaskTest::testId

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::testId()

Tests that mask entities' id() method returns the UUID.

File

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

Class

EntityMaskTest
Basic test of entity type masking.

Namespace

Drupal\Tests\ctools_entity_mask\Kernel

Code

public function testId() {
    $block = BlockContent::create([
        'type' => 'basic',
    ]);
    $this->assertSame($block->id(), $block->uuid());
    $block->save();
    $this->assertSame($block->id(), $block->uuid());
}