function FormStateDecoratorBaseTest::testGetButtons

Tests get buttons.

@legacy-covers ::getButtons

File

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

Class

FormStateDecoratorBaseTest
Tests Drupal\Core\Form\FormStateDecoratorBase.

Namespace

Drupal\Tests\Core\Form

Code

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.