public function FormStateDecoratorBaseTest::testIsSubmitted in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php \Drupal\Tests\Core\Form\FormStateDecoratorBaseTest::testIsSubmitted()
@covers ::isSubmitted
@dataProvider providerSingleBooleanArgument
Parameters
bool $submitted:
File
- core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateDecoratorBaseTest.php, line 650
Class
- FormStateDecoratorBaseTest
- @coversDefaultClass \Drupal\Core\Form\FormStateDecoratorBase
Namespace
Drupal\Tests\Core\FormCode
public function testIsSubmitted($submitted) {
$this->decoratedFormState
->isSubmitted()
->willReturn($submitted);
$this
->assertSame($submitted, $this->formStateDecoratorBase
->isSubmitted());
}