public function ListWidgetTest::massageFormValuesRemovesSelectValueIfPresent in Select (or other) 8
Same name and namespace in other branches
- 4.x tests/src/Unit/ListWidgetTest.php \Drupal\Tests\select_or_other\Unit\ListWidgetTest::massageFormValuesRemovesSelectValueIfPresent()
@test
File
- tests/
src/ Unit/ ListWidgetTest.php, line 108
Class
- ListWidgetTest
- Tests the form element implementation.
Namespace
Drupal\Tests\select_or_other\UnitCode
public function massageFormValuesRemovesSelectValueIfPresent() {
$sut = $this
->getNewSubjectUnderTest();
$form = [];
$form_state = new FormState();
/** @var ListWidget $mock */
$result = $sut
->massageFormValues([
'select' => 'test',
], $form, $form_state);
$this
->assertArrayEquals([], $result);
}