public function FormStateDecoratorBaseTest::testAddBuildInfo in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php \Drupal\Tests\Core\Form\FormStateDecoratorBaseTest::testAddBuildInfo()
@covers ::addBuildInfo
File
- core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateDecoratorBaseTest.php, line 1060
Class
- FormStateDecoratorBaseTest
- @coversDefaultClass \Drupal\Core\Form\FormStateDecoratorBase
Namespace
Drupal\Tests\Core\FormCode
public function testAddBuildInfo() {
$property = 'FOO';
$value = 'BAR';
$this->decoratedFormState
->addBuildInfo($property, $value)
->shouldBeCalled();
$this
->assertSame($this->formStateDecoratorBase, $this->formStateDecoratorBase
->addBuildInfo($property, $value));
}