function EntityMaskTest::testFields
Same name in other branches
- 4.0.x modules/ctools_entity_mask/tests/src/Kernel/EntityMaskTest.php \Drupal\Tests\ctools_entity_mask\Kernel\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\KernelCode
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'));
}