public function CssW3FormTest::testSettingsForm in Advanced CSS/JS Aggregation 8.4
Tests for \Drupal\advagg_validator\Form\CssW3Form.
File
- advagg_validator/
tests/ src/ Kernel/ Form/ CssW3FormTest.php, line 46
Class
- CssW3FormTest
- Tests the validator css W3 settings form.
Namespace
Drupal\Tests\advagg_validator\Kernel\FormCode
public function testSettingsForm() {
$this
->assertInstanceOf(FormInterface::class, $this->cssW3Form);
$id = $this->cssW3Form
->getFormId();
$this
->assertEquals('advagg_validator_cssw3', $id);
$method = new \ReflectionMethod(CssW3Form::class, 'getEditableConfigNames');
$method
->setAccessible(TRUE);
$name = $method
->invoke($this->cssW3Form);
$this
->assertEquals([
'advagg_validator.settings',
], $name);
}