You are here

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

Test the method getLongTimes.

File

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

Class

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

Namespace

Drupal\Tests\advagg\Kernel\Form

Code

public function testLongTimes() {
  $longTimes = $this->settingsForm
    ->getLongTimes();
  $this
    ->assertIsArray($longTimes);
  $this
    ->assertTrue(in_array('2 days', $longTimes));
  $this
    ->assertTrue(in_array('2 months', $longTimes));
}