function FormStateDecoratorBaseTest::testSetMethod
Tests set method.
@legacy-covers ::setMethod
Attributes
#[DataProvider('providerSingleBooleanArgument')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateDecoratorBaseTest.php, line 329
Class
Namespace
Drupal\Tests\Core\FormCode
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.