ConfigFormTestBase::$values

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/ConfigFormTestBase.php \Drupal\KernelTests\ConfigFormTestBase::values
  2. 8.9.x core/tests/Drupal/KernelTests/ConfigFormTestBase.php \Drupal\KernelTests\ConfigFormTestBase::values
  3. 11.x core/tests/Drupal/KernelTests/ConfigFormTestBase.php \Drupal\KernelTests\ConfigFormTestBase::values

Values to use for testing.

Contains details for form key, configuration object name, and config key. Example:

[
    'user_mail_cancel_confirm_body' => [
        '#value' => $this->randomString(),
        '#config_name' => 'user.mail',
        '#config_key' => 'cancel_confirm.body',
    ],
];

Type: array

File

core/tests/Drupal/KernelTests/ConfigFormTestBase.php, line 40

Class

ConfigFormTestBase
Full generic test suite for any form that data with the configuration system.

Namespace

Drupal\KernelTests

Code

protected $values;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.