You are here

public function OperationsFormTest::testOperationsForm in Advanced CSS/JS Aggregation 8.4

Tests for \Drupal\advagg\Form\OperationsForm.

File

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

Class

OperationsFormTest
Tests the Operations settings form.

Namespace

Drupal\Tests\advagg\Kernel\Form

Code

public function testOperationsForm() {
  $this
    ->assertInstanceOf(FormInterface::class, $this->operationsForm);
  $id = $this->operationsForm
    ->getFormId();
  $this
    ->assertEquals('advagg_operations', $id);
  $method = new \ReflectionMethod(OperationsForm::class, 'getEditableConfigNames');
  $method
    ->setAccessible(TRUE);
  $name = $method
    ->invoke($this->operationsForm);
  $this
    ->assertEquals([
    'advagg.settings',
  ], $name);
}