public function EntityMaskTest::testId in Chaos Tool Suite (ctools) 8.3
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\KernelCode
public function testId() {
$block = BlockContent::create([
'type' => 'basic',
]);
$this
->assertSame($block
->id(), $block
->uuid());
$block
->save();
$this
->assertSame($block
->id(), $block
->uuid());
}