You are here

public function MigrateIngredient61Test::testIngredient in Recipe 8.2

Tests the Drupal 6 ingredient to Drupal 8 migration.

File

modules/ingredient/tests/src/Kernel/Migrate/recipe61/MigrateIngredient61Test.php, line 48

Class

MigrateIngredient61Test
@covers \Drupal\ingredient\Plugin\migrate\destination\EntityIngredient @covers \Drupal\ingredient\Plugin\migrate\source\recipe1x\Ingredient @group recipe

Namespace

Drupal\Tests\ingredient\Kernel\Migrate\recipe61

Code

public function testIngredient() {
  $ingredients = Database::getConnection('default', 'migrate')
    ->select('recipe_ingredient', 'i')
    ->fields('i')
    ->execute()
    ->fetchAll();
  foreach ($ingredients as $source) {
    $this
      ->assertEntity($source->id, $source->name);
  }
}