public static function BaseFieldDefinitionTest::create in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityTestBase.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\BaseFieldDefinitionTest::create()
- 10 core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityTestBase.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\BaseFieldDefinitionTest::create()
Creates a new field definition.
Parameters
string $type: The type of the field.
Return value
static A new field definition object.
Overrides BaseFieldDefinition::create
3 calls to BaseFieldDefinitionTest::create()
- EntityContentBaseTest::testUntranslatable in core/
modules/ migrate/ tests/ src/ Unit/ Plugin/ migrate/ destination/ EntityContentBaseTest.php - Test that translation destination fails for untranslatable entities.
- EntityRevisionTest::testUnrevisionable in core/
modules/ migrate/ tests/ src/ Unit/ Plugin/ migrate/ destination/ EntityRevisionTest.php - Tests that revision destination fails for unrevisionable entities.
- EntityRevisionTest::testUntranslatable in core/
modules/ migrate/ tests/ src/ Unit/ Plugin/ migrate/ destination/ EntityRevisionTest.php - Tests that translation destination fails for untranslatable entities.
File
- core/
modules/ migrate/ tests/ src/ Unit/ Plugin/ migrate/ destination/ EntityTestBase.php, line 65 - Contains \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\EntityTestBase
Class
- BaseFieldDefinitionTest
- Stub class for BaseFieldDefinition.
Namespace
Drupal\Tests\migrate\Unit\Plugin\migrate\destinationCode
public static function create($type) {
return new static([]);
}