function FormStateDecoratorBaseTest::testSetHasFileElement

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php \Drupal\Tests\Core\Form\FormStateDecoratorBaseTest::testSetHasFileElement()
  2. 9 core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php \Drupal\Tests\Core\Form\FormStateDecoratorBaseTest::testSetHasFileElement()
  3. 8.9.x core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php \Drupal\Tests\Core\Form\FormStateDecoratorBaseTest::testSetHasFileElement()

Tests set has file element.

Attributes

#[DataProvider('providerSingleBooleanArgument')]

File

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

Class

FormStateDecoratorBaseTest
Tests Drupal\Core\Form\FormStateDecoratorBase.

Namespace

Drupal\Tests\Core\Form

Code

public function testSetHasFileElement($has_file_element) : void {
  $this->decoratedFormState
    ->setHasFileElement($has_file_element)
    ->shouldBeCalled();
  $this->assertSame($this->formStateDecoratorBase, $this->formStateDecoratorBase
    ->setHasFileElement($has_file_element));
}

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