ConfigFormTestBase::$values

Same name in other branches
  1. 8.9.x core/tests/Drupal/KernelTests/ConfigFormTestBase.php \Drupal\KernelTests\ConfigFormTestBase::values
  2. 10 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:

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

Type: array

File

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

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.