You are here

public function CssLintFormTest::testSettingsForm in Advanced CSS/JS Aggregation 8.4

Tests for \Drupal\advagg_validator\Form\CssLintForm.

File

advagg_validator/tests/src/Kernel/Form/CssLintFormTest.php, line 46

Class

CssLintFormTest
Tests the Modifier Minification settings form.

Namespace

Drupal\Tests\advagg_validator\Kernel\Form

Code

public function testSettingsForm() {
  $this
    ->assertInstanceOf(FormInterface::class, $this->cssLintForm);
  $id = $this->cssLintForm
    ->getFormId();
  $this
    ->assertEquals('advagg_validator_csslint', $id);
  $method = new \ReflectionMethod(CssLintForm::class, 'getEditableConfigNames');
  $method
    ->setAccessible(TRUE);
  $name = $method
    ->invoke($this->cssLintForm);
  $this
    ->assertEquals([
    'advagg_validator.settings',
  ], $name);
}