function FormStateDecoratorBaseTest::testSetRebuildInfo

@covers ::setRebuildInfo

File

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

Class

FormStateDecoratorBaseTest
@coversDefaultClass \Drupal\Core\Form\FormStateDecoratorBase[[api-linebreak]]

Namespace

Drupal\Tests\Core\Form

Code

public function testSetRebuildInfo() {
  $rebuild_info = [
    'FOO' => 'BAR',
  ];
  $this->decoratedFormState
    ->setRebuildInfo($rebuild_info)
    ->shouldBeCalled();
  $this->assertSame($this->formStateDecoratorBase, $this->formStateDecoratorBase
    ->setRebuildInfo($rebuild_info));
}

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