public function FormStateTest::providerTestGetError in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Form/FormStateTest.php \Drupal\Tests\Core\Form\FormStateTest::providerTestGetError()
- 9 core/tests/Drupal/Tests/Core/Form/FormStateTest.php \Drupal\Tests\Core\Form\FormStateTest::providerTestGetError()
File
- core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateTest.php, line 86 - Contains \Drupal\Tests\Core\Form\FormStateTest.
Class
- FormStateTest
- @coversDefaultClass \Drupal\Core\Form\FormState
Namespace
Drupal\Tests\Core\FormCode
public function providerTestGetError() {
return [
[
[],
[
'foo',
],
],
[
[
'foo][bar' => 'Fail',
],
[],
],
[
[
'foo][bar' => 'Fail',
],
[
'foo',
],
],
[
[
'foo][bar' => 'Fail',
],
[
'bar',
],
],
[
[
'foo][bar' => 'Fail',
],
[
'baz',
],
],
[
[
'foo][bar' => 'Fail',
],
[
'foo',
'bar',
],
'Fail',
],
[
[
'foo][bar' => 'Fail',
],
[
'foo',
'bar',
'baz',
],
'Fail',
],
[
[
'foo][bar' => 'Fail 2',
],
[
'foo',
],
],
[
[
'foo' => 'Fail 1',
'foo][bar' => 'Fail 2',
],
[
'foo',
],
'Fail 1',
],
[
[
'foo' => 'Fail 1',
'foo][bar' => 'Fail 2',
],
[
'foo',
'bar',
],
'Fail 1',
],
];
}