You are here

public function InfoFormTest::testInfoForm in Advanced CSS/JS Aggregation 8.4

Tests for \Drupal\advagg\Form\InfoForm.

File

tests/src/Kernel/Form/InfoFormTest.php, line 49

Class

InfoFormTest
Tests the Info settings form.

Namespace

Drupal\Tests\advagg\Kernel\Form

Code

public function testInfoForm() {
  $this
    ->assertInstanceOf(FormInterface::class, $this->infoForm);
  $id = $this->infoForm
    ->getFormId();
  $this
    ->assertEquals('advagg_info', $id);
  $method = new \ReflectionMethod(InfoForm::class, 'getEditableConfigNames');
  $method
    ->setAccessible(TRUE);
  $name = $method
    ->invoke($this->infoForm);
  $this
    ->assertEquals([], $name);
}