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