function FormStateDecoratorBaseTest::testPrepareCallback
@covers ::prepareCallback
@dataProvider providerPrepareCallback
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateDecoratorBaseTest.php, line 1435
Class
- FormStateDecoratorBaseTest
- @coversDefaultClass \Drupal\Core\Form\FormStateDecoratorBase[[api-linebreak]]
Namespace
Drupal\Tests\Core\FormCode
public function testPrepareCallback($unprepared_callback, callable $prepared_callback) {
$this->decoratedFormState
->prepareCallback(Argument::is($unprepared_callback))
->willReturn($prepared_callback)
->shouldBeCalled();
$this->assertSame($prepared_callback, $this->formStateDecoratorBase
->prepareCallback($unprepared_callback));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.