$this->fieldName, 'entity_type' => 'entity_test', 'type' => 'test_field_with_dependencies', ])->save(); $field = FieldConfig::create([ 'entity_type' => 'entity_test', 'field_name' => $this->fieldName, 'bundle' => 'entity_test', ]); $field->save(); // Validate that the field configuration entity has the expected // dependencies. $this->assertEqual([ 'content' => ['node:article:uuid'], 'config' => ['field.storage.entity_test.field_test'], 'module' => ['entity_test', 'field_test', 'test_module'], ], $field->getDependencies()); } }