function RecipeRunnerTest::testRenamedConfigActions
Tests that renamed plugins are marked as deprecated.
@group legacy
File
- 
              core/tests/ Drupal/ KernelTests/ Core/ Recipe/ RecipeRunnerTest.php, line 244 
Class
- RecipeRunnerTest
- @coversDefaultClass \Drupal\Core\Recipe\RecipeRunner[[api-linebreak]] @group Recipe
Namespace
Drupal\KernelTests\Core\RecipeCode
public function testRenamedConfigActions() : void {
  $recipe_data = <<<YAML
  name: Renamed config action
  install:
    - config_test
  config:
    actions:
      config_test.dynamic.recipe:
        ensure_exists:
          label: 'Created by recipe'
  YAML;
  $recipe = $this->createRecipe($recipe_data);
  $this->expectDeprecation('The plugin ID "entity_create:ensure_exists" is deprecated in drupal:10.3.1 and will be removed in drupal:12.0.0. Use "entity_create:createIfNotExists" instead. See https://www.drupal.org/node/3458273.');
  RecipeRunner::processRecipe($recipe);
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
