Same name in other branches
  1. 5.0.x tests/src/Kernel/Form/OperationsFormTest.php \Drupal\Tests\advagg\Kernel\Form\OperationsFormTest::testOperationsForm()
  2. 8.x-4.x tests/src/Kernel/Form/OperationsFormTest.php \Drupal\Tests\advagg\Kernel\Form\OperationsFormTest::testOperationsForm()

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);
}