MigrateIngredientSettings71Test.php in Recipe 8.2
File
modules/ingredient/tests/src/Kernel/Migrate/recipe71/MigrateIngredientSettings71Test.php
View source
<?php
namespace Drupal\Tests\ingredient\Kernel\Migrate\recipe71;
class MigrateIngredientSettings71Test extends MigrateIngredient71TestBase {
protected static $modules = [
'ingredient',
];
protected function setUp() : void {
parent::setUp();
$this
->installConfig(static::$modules);
$this
->executeMigrations([
'recipe1x_ingredient_settings',
]);
}
public function testMigration() {
$config = \Drupal::config('ingredient.settings')
->get();
$this
->assertSame(1, $config['ingredient_name_normalize']);
}
}