You are here

public static function BaseFieldDefinitionTest::create in Drupal 9

Same name and namespace in other branches
  1. 8 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
Tests 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\destination

Code

public static function create($type) {
  return new static([]);
}