function BaseFieldDefinitionTest::create

Same name in other branches
  1. 8.9.x core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityTestBase.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\BaseFieldDefinitionTest::create()
  2. 10 core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityTestBase.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\BaseFieldDefinitionTest::create()
  3. 11.x core/modules/migrate/tests/src/Unit/Plugin/migrate/destination/EntityTestBase.php \Drupal\Tests\migrate\Unit\Plugin\migrate\destination\BaseFieldDefinitionTest::create()

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

Class

BaseFieldDefinitionTest
Stub class for BaseFieldDefinition.

Namespace

Drupal\Tests\migrate\Unit\Plugin\migrate\destination

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.