function FormStateDecoratorBaseTest::testSetTemporary
Tests set temporary.
@legacy-covers ::setTemporary
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateDecoratorBaseTest.php, line 674
Class
Namespace
Drupal\Tests\Core\FormCode
public function testSetTemporary() : void {
$temporary = [
'FOO' => 'BAR',
];
$this->decoratedFormState
->setTemporary($temporary)
->shouldBeCalled();
$this->assertSame($this->formStateDecoratorBase, $this->formStateDecoratorBase
->setTemporary($temporary));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.