You are here

public function SettingsFormTest::testCacheLevelOption in Advanced CSS/JS Aggregation 8.4

Test the cache level options.

File

tests/src/Kernel/Form/SettingsFormTest.php, line 45

Class

SettingsFormTest
Class for test Drupal\advagg\Form\SettingsForm.

Namespace

Drupal\Tests\advagg\Kernel\Form

Code

public function testCacheLevelOption() {
  $options = $this->settingsForm
    ->getCacheLevelOptions();
  $this
    ->assertIsArray($options);
  $this
    ->assertTrue(in_array('Development', $options));
  $this
    ->assertTrue(in_array('High', $options));
}