function RecipeCommandTest::testListInputs
File
-
core/
tests/ Drupal/ FunctionalTests/ Core/ Recipe/ RecipeCommandTest.php, line 147
Class
- RecipeCommandTest
- Tests recipe command.
Namespace
Drupal\FunctionalTests\Core\RecipeCode
public function testListInputs() : void {
$root = $this->getDrupalRoot();
$output = $this->applyRecipe($root . '/core/tests/fixtures/recipes/input_test', command: 'recipe:info')
->getOutput();
$this->assertStringContainsString('input_test.owner', $output);
$this->assertStringContainsString('The name of the site owner.', $output);
$output = $this->applyRecipe($root . '/core/recipes/page_content_type', command: 'recipe:info')
->getOutput();
$this->assertStringContainsString('This recipe does not accept any input.', $output);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.