public function JQueryColorpickerTest::testValidateElementEmpty in Jquery Colorpicker 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/Element/JQueryColorpickerTest.php \Drupal\Test\jquery_colorpicker\Element\JQueryColorpickerTest::testValidateElementEmpty()
@covers ::valueCallback
File
- tests/
src/ Unit/ Element/ JQueryColorpickerTest.php, line 49
Class
- JQueryColorpickerTest
- @coversDefaultClass \Drupal\jquery_colorpicker\Element\JQueryColorpicker @group jquery_colorpicker
Namespace
Drupal\Test\jquery_colorpicker\ElementCode
public function testValidateElementEmpty() {
$element = [
'#value' => '',
];
$form_state = $this
->prophesize(FormStateInterface::class)
->reveal();
$this
->assertSame(NULL, JQueryColorpicker::validateElement($element, $form_state));
}