function EntityMaskTest::testFields

Tests that fields are correctly masked.

File

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

Class

EntityMaskTest
Basic test of entity type masking.

Namespace

Drupal\Tests\ctools_entity_mask\Kernel

Code

public function testFields() {
  $block = BlockContent::create([
    'type' => 'basic',
  ]);
  $this->assertTrue($block->hasField('body'));
  $this->assertTrue($block->hasField('field_link'));
  $this->assertTrue($block->hasField('field_image'));
}