Same name and namespace in other branches
- 5.0.x tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg\Kernel\Form\SettingsFormTest::testCacheLevelOption()
- 6.0.x tests/src/Kernel/Form/SettingsFormTest.php \Drupal\Tests\advagg\Kernel\Form\SettingsFormTest::testCacheLevelOption()
Test the cache level options.
Fichier
-
tests/
src/ Kernel/ Form/ SettingsFormTest.php, line 45
Classe
- SettingsFormTest
- Class for test <a href="/fr/work/drupal-api/advagg/src%21Form%21SettingsForm.php/class/SettingsForm/8.x-4.x" title="Configure advagg settings for this site." class="local">Drupal\advagg\Form\SettingsForm</a>.
Namespace
Drupal\Tests\advagg\Kernel\FormCode
public function testCacheLevelOption() {
$options = $this->settingsForm
->getCacheLevelOptions();
$this->assertIsArray($options);
$this->assertTrue(in_array('Development', $options));
$this->assertTrue(in_array('High', $options));
}