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

Tests for \Drupal\advagg\Form\OperationsForm.

Fichier

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

Classe

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