config_test.types.yml
Same filename in other branches
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
- array: []
- boolean: true
- exp: 1.2e+34
- float: 3.14159
- float_as_integer: !!float 1
- hex: 0xC
- int: 99
- # Symfony 5.1's YAML parser issues a deprecation when reading octal with a
- # leading zero, to comply with YAML 1.2. However PECL YAML is still YAML 1.1
- # compliant. @todo: revisit parsing of octal once PECL YAML supports YAML 1.2.
- # @see https://www.drupal.org/project/drupal/issues/3205480
- # octal: 0775
- string: string
- string_int: '1'
- # To validate all types can be nullable.
- nullable_array: null
- nullable_boolean: ~
- nullable_exp: null
- nullable_float: ~
- nullable_float_as_integer: null
- nullable_hex: ~
- nullable_int: null
- nullable_octal: ~
- nullable_string: null
- nullable_string_int: ~
- # To test required vs optional keys.
- mapping_with_only_required_keys: {}
- mapping_with_some_required_keys: {}
- mapping_with_only_optional_keys: {}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.