function FormStateTest::testGetValues
Tests get values.
@legacy-covers ::setValues @legacy-covers ::getValues
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormStateTest.php, line 455
Class
Namespace
Drupal\Tests\Core\FormCode
public function testGetValues() : void {
$values = [
'foo' => 'bar',
];
$form_state = new FormState();
$form_state->setValues($values);
$this->assertSame($values, $form_state->getValues());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.