public function DatetimeElementFormTest::testDatetimeElement in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Datetime/DatetimeElementFormTest.php \Drupal\KernelTests\Core\Datetime\DatetimeElementFormTest::testDatetimeElement()
Tests that default handlers are added even if custom are specified.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Datetime/ DatetimeElementFormTest.php, line 135
Class
- DatetimeElementFormTest
- Tests DatetimeElement functionality.
Namespace
Drupal\KernelTests\Core\DatetimeCode
public function testDatetimeElement() {
$form = \Drupal::formBuilder()
->getForm($this);
$this
->render($form);
$this
->assertTrue($this->dateCallbackExecuted);
$this
->assertTrue($this->timeCallbackExecuted);
}