You are here

public function MigrateRecipeFieldSettings71Test::testMigration in Recipe 8.2

Tests migration of ingredient field instance variables.

File

tests/src/Kernel/Migrate/recipe71/MigrateRecipeFieldSettings71Test.php, line 33

Class

MigrateRecipeFieldSettings71Test
Tests migration of Recipe 7.x-1.x ingredient variables to configuration.

Namespace

Drupal\Tests\recipe\Kernel\Migrate\recipe71

Code

public function testMigration() {
  $field_instance = FieldConfig::load('node.recipe.recipe_ingredient');
  $this
    ->assertSame($field_instance
    ->getSetting('default_unit'), 'cup');
}