You are here

public function ModalPageSettingsFormTest::testEditableConfigName in Modal 8.3

Same name and namespace in other branches
  1. 8.2 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\Form

Code

public function testEditableConfigName() {
  $method = new \ReflectionMethod(ModalPageSettingsForm::class, 'getEditableConfigNames');
  $method
    ->setAccessible(TRUE);
  $configName = $method
    ->invoke($this->modalPageSettingsForm);
  $this
    ->assertEquals([
    'modal_page.settings',
  ], $configName);
}