function FormStateDecoratorBaseTest::testSetTemporary

Tests set temporary.

@legacy-covers ::setTemporary

File

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

Class

FormStateDecoratorBaseTest
Tests Drupal\Core\Form\FormStateDecoratorBase.

Namespace

Drupal\Tests\Core\Form

Code

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.