Same name and namespace 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 <a href="/en/work/drupal-api/advagg/src%21Form%21SettingsForm.php/class/SettingsForm/6.0.x" title="Configure advagg settings for this site." class="local">Drupal\advagg\Form\SettingsForm</a>.
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));
}