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