public function ModalPageSettingsFormTest::testEditableConfigName in Modal 8.2
Same name and namespace in other branches
- 8.3 tests/src/Kernel/Form/ModalPageSettingsFormTest.php \Drupal\Tests\modal_page\Kernel\Form\ModalPageSettingsFormTest::testEditableConfigName()
Test editable config name.
File
- tests/
src/ Kernel/ Form/ ModalPageSettingsFormTest.php, line 74
Class
- ModalPageSettingsFormTest
- Kernel tests for ModalPageSettingsForm.
Namespace
Drupal\Tests\modal_page\Kernel\FormCode
public function testEditableConfigName() {
$method = new \ReflectionMethod(ModalPageSettingsForm::class, 'getEditableConfigNames');
$method
->setAccessible(TRUE);
$configName = $method
->invoke($this->modalPageSettingsForm);
$this
->assertEquals([
'modal_page.settings',
], $configName);
}