Same name in other branches
- 6.0.x tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg\Kernel\Form\SettingsFormTest::testShortTimes()
- 8.x-4.x tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg\Kernel\Form\SettingsFormTest::testShortTimes()
Test the method getShortTimes.
Fichier
-
tests/
src/ Kernel/ Form/ SettingsFormTest.php, line 55
Classe
- SettingsFormTest
- Class for test Drupal\advagg\Form\SettingsForm.
Namespace
Drupal\Tests\advagg\Kernel\FormCode
public function testShortTimes() {
$shortTime = $this->settingsForm
->getShortTimes();
$this->assertIsArray($shortTime);
$this->assertTrue(in_array('15 minutes', $shortTime));
$this->assertTrue(in_array('2 days', $shortTime));
}