function RecipeCommandTest::testListInputs

File

core/tests/Drupal/FunctionalTests/Core/Recipe/RecipeCommandTest.php, line 147

Class

RecipeCommandTest
Tests recipe command.

Namespace

Drupal\FunctionalTests\Core\Recipe

Code

public function testListInputs() : void {
    $root = $this->getDrupalRoot();
    $output = $this->applyRecipe($root . '/core/recipes/feedback_contact_form', command: 'recipe:info')
        ->getOutput();
    $this->assertStringContainsString('feedback_contact_form.recipient', $output);
    $this->assertStringContainsString('The email address that should receive submissions from the feedback form.', $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.