You are here

public function ImceSettingsFormTest::testEditableConfigName in IMCE 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/Form/ImceSettingsFormTest.php \Drupal\Tests\imce\Kernel\Form\ImceSettingsFormTest::testEditableConfigName()

Test editable config name.

File

tests/src/Kernel/Form/ImceSettingsFormTest.php, line 90

Class

ImceSettingsFormTest
Kernel tests for ImceSettingsForm.

Namespace

Drupal\Tests\imce\Kernel\Form

Code

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