Same name in other branches
- 5.0.x tests/src/Kernel/Form/InfoFormTest.php \Drupal\Tests\advagg\Kernel\Form\InfoFormTest::testInfoForm()
- 8.x-4.x tests/src/Kernel/Form/InfoFormTest.php \Drupal\Tests\advagg\Kernel\Form\InfoFormTest::testInfoForm()
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\FormCode
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);
}