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

Tests for \Drupal\advagg\Form\InfoForm.

Fichier

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

Classe

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