protected function EntityDefinitionTestTrait::modifyBundleField in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Entity/EntityDefinitionTestTrait.php \Drupal\system\Tests\Entity\EntityDefinitionTestTrait::modifyBundleField()
Modifies the new bundle field from 'string' to 'text'.
2 calls to EntityDefinitionTestTrait::modifyBundleField()
- EntityDefinitionUpdateTest::testBundleFieldCreateUpdateDeleteWithoutData in core/
modules/ system/ src/ Tests/ Entity/ EntityDefinitionUpdateTest.php - Tests creating, updating, and deleting a bundle field if no entities exist.
- EntityDefinitionUpdateTest::testBundleFieldUpdateWithExistingData in core/
modules/ system/ src/ Tests/ Entity/ EntityDefinitionUpdateTest.php - Tests updating a bundle field when it has existing data.
File
- core/
modules/ system/ src/ Tests/ Entity/ EntityDefinitionTestTrait.php, line 192 - Contains \Drupal\system\Tests\Entity\EntityDefinitionTestTrait.
Class
- EntityDefinitionTestTrait
- Provides some test methods used to update existing entity definitions.
Namespace
Drupal\system\Tests\EntityCode
protected function modifyBundleField() {
$this
->addBundleField('text');
}