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