function FormStateDecoratorBaseTest::testSetUserInput

Tests set user input.

@legacy-covers ::setUserInput

File

core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php, line 1164

Class

FormStateDecoratorBaseTest
Tests Drupal\Core\Form\FormStateDecoratorBase.

Namespace

Drupal\Tests\Core\Form

Code

public function testSetUserInput() : void {
  $user_input = [
    'FOO' => 'BAR',
  ];
  $this->decoratedFormState
    ->setUserInput($user_input)
    ->shouldBeCalled();
  $this->assertSame($this->formStateDecoratorBase, $this->formStateDecoratorBase
    ->setUserInput($user_input));
}

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