protected function RemoteIdItemTest::setUp in Commerce Core 8.2
Overrides CommerceKernelTestBase::setUp
File
- tests/
src/ Kernel/ RemoteIdItemTest.php, line 26
Class
- RemoteIdItemTest
- Tests the 'commerce_remote_id' field type.
Namespace
Drupal\Tests\commerce\KernelCode
protected function setUp() : void {
parent::setUp();
$field_storage = FieldStorageConfig::create([
'field_name' => 'test_remote_id',
'entity_type' => 'entity_test',
'type' => 'commerce_remote_id',
]);
$field_storage
->save();
$field = FieldConfig::create([
'field_name' => 'test_remote_id',
'entity_type' => 'entity_test',
'bundle' => 'entity_test',
]);
$field
->save();
}