function RecipeCommandTest::testPassInput
File
-
core/
tests/ Drupal/ FunctionalTests/ Core/ Recipe/ RecipeCommandTest.php, line 122
Class
- RecipeCommandTest
- Tests recipe command.
Namespace
Drupal\FunctionalTests\Core\RecipeCode
public function testPassInput() : void {
$dir = $this->getDrupalRoot() . '/core/recipes/feedback_contact_form';
$this->applyRecipe($dir, options: [
'--input=feedback_contact_form.recipient=hello@good.bye',
]);
$this->assertSame([
'hello@good.bye',
], ContactForm::load('feedback')?->getRecipients());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.