Same name in other branches
- 5.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.
File
-
tests/
src/ Kernel/ Form/ SettingsFormTest.php, line 55
Class
- 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));
}