public function FormStateDecoratorBaseTest::testHas in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php \Drupal\Tests\Core\Form\FormStateDecoratorBaseTest::testHas()
@covers ::has
@dataProvider providerHas
Parameters
bool $exists:
string $key:
File
- core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateDecoratorBaseTest.php, line 1010
Class
- FormStateDecoratorBaseTest
- @coversDefaultClass \Drupal\Core\Form\FormStateDecoratorBase
Namespace
Drupal\Tests\Core\FormCode
public function testHas($exists, $key) {
$this->decoratedFormState
->has($key)
->willReturn($exists)
->shouldBeCalled();
$this
->assertSame($exists, $this->formStateDecoratorBase
->has($key));
}