function InputTest::setUp

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Recipe/InputTest.php, line 38

Class

InputTest
@group Recipe @covers \Drupal\Core\Recipe\InputConfigurator

Namespace

Drupal\KernelTests\Core\Recipe

Code

protected function setUp() : void {
    parent::setUp();
    $this->installConfig('user');
    $this->config('core.menu.static_menu_link_overrides')
        ->set('definitions', [])
        ->save();
    $this->config('system.site')
        ->set('langcode', 'en')
        ->set('name', 'Testing!')
        ->set('mail', 'ben@deep.space')
        ->set('uuid', $this->container
        ->get(UuidInterface::class)
        ->generate())
        ->save();
    $this->recipe = Recipe::createFromDirectory($this->getDrupalRoot() . '/core/recipes/feedback_contact_form');
}

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