public function DatetimeElementFormTest::testDatetimeElement in Drupal 8
Same name and namespace in other branches
- 9 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 104  
Class
- DatetimeElementFormTest
 - Tests DatetimeElement functionality.
 
Namespace
Drupal\KernelTests\Core\DatetimeCode
public function testDatetimeElement() {
  $form = \Drupal::formBuilder()
    ->getForm($this);
  $this
    ->render($form);
  $this
    ->assertEqual(t('Date time callback called.'), $this->flag);
}