config_test.types.yml

Same filename in other branches
  1. 9 core/modules/config/tests/config_test/config/install/config_test.types.yml
  2. 8.9.x core/modules/config/tests/config_test/config/install/config_test.types.yml
  3. 10 core/modules/config/tests/config_test/config/install/config_test.types.yml
core/modules/config/tests/config_test/config/install/config_test.types.yml
5 string references to 'config_test.types'
ConfigCRUDTest::testDataTypes in core/tests/Drupal/KernelTests/Core/Config/ConfigCRUDTest.php
Tests data type handling.
ConfigStorageTestBase::testDataTypes in core/tests/Drupal/KernelTests/Core/Config/Storage/ConfigStorageTestBase.php
Tests storage writing and reading data preserving data type.
InputTest::testLiterals in core/tests/Drupal/KernelTests/Core/Recipe/InputTest.php
SchemaCheckTraitTest::providerCheckConfigSchema in core/tests/Drupal/KernelTests/Core/Config/SchemaCheckTraitTest.php
SchemaCheckTraitTest::testCheckConfigSchema in core/tests/Drupal/KernelTests/Core/Config/SchemaCheckTraitTest.php
Tests \Drupal\Core\Config\Schema\SchemaCheckTrait.

File

core/modules/config/tests/config_test/config/install/config_test.types.yml

View source
  1. array: []
  2. boolean: true
  3. exp: 1.2e+34
  4. float: 3.14159
  5. float_as_integer: !!float 1
  6. hex: 0xC
  7. int: 99
  8. # Symfony 5.1's YAML parser issues a deprecation when reading octal with a
  9. # leading zero, to comply with YAML 1.2. However PECL YAML is still YAML 1.1
  10. # compliant. @todo: revisit parsing of octal once PECL YAML supports YAML 1.2.
  11. # @see https://www.drupal.org/project/drupal/issues/3205480
  12. # octal: 0775
  13. string: string
  14. string_int: '1'
  15. # To validate all types can be nullable.
  16. nullable_array: null
  17. nullable_boolean: ~
  18. nullable_exp: null
  19. nullable_float: ~
  20. nullable_float_as_integer: null
  21. nullable_hex: ~
  22. nullable_int: null
  23. nullable_octal: ~
  24. nullable_string: null
  25. nullable_string_int: ~
  26. # To test required vs optional keys.
  27. mapping_with_only_required_keys: {}
  28. mapping_with_some_required_keys: {}
  29. mapping_with_only_optional_keys: {}

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