You are here

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

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\Form

Code

public function testShortTimes() {
  $shortTime = $this->settingsForm
    ->getShortTimes();
  $this
    ->assertIsArray($shortTime);
  $this
    ->assertTrue(in_array('15 minutes', $shortTime));
  $this
    ->assertTrue(in_array('2 days', $shortTime));
}