function RecipeFinderTest::testUnknownComposerRecipeDirectory

Tests that there is an error if Composer is misconfigured for recipes.

File

core/tests/Drupal/KernelTests/Core/Recipe/RecipeFinderTest.php, line 115

Class

RecipeFinderTest
Tests the recipe finder.

Namespace

Drupal\KernelTests\Core\Recipe

Code

public function testUnknownComposerRecipeDirectory() : void {
  // By default, core's `composer.json` does not set up a recipe install path.
  $this->expectException(\RuntimeException::class);
  $this->expectExceptionMessage("No recipe install location is configured in {$this->root}/composer.json.");
  Finder::getComposerRecipesDirectory();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.