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