function FormStateDecoratorBaseTest::testSetMethod

Tests set method.

@legacy-covers ::setMethod

Attributes

#[DataProvider('providerSingleBooleanArgument')]

File

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

Class

FormStateDecoratorBaseTest
Tests Drupal\Core\Form\FormStateDecoratorBase.

Namespace

Drupal\Tests\Core\Form

Code

public function testSetMethod($method) : void {
  $this->decoratedFormState
    ->setMethod($method)
    ->shouldBeCalled();
  $this->assertSame($this->formStateDecoratorBase, $this->formStateDecoratorBase
    ->setMethod($method));
}

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