You are here

protected function ConfigHandlerTest::getUpdateDefinition in Update helper 8

Same name and namespace in other branches
  1. 2.x tests/src/Kernel/ConfigHandlerTest.php \Drupal\Tests\update_helper\Kernel\ConfigHandlerTest::getUpdateDefinition()

Returns update defintion data.

Return value

string Update definition Yaml string.

1 call to ConfigHandlerTest::getUpdateDefinition()
ConfigHandlerTest::testGeneratePatchFileFromActiveConfig in tests/src/Kernel/ConfigHandlerTest.php
@covers \Drupal\update_helper\ConfigHandler::generatePatchFile

File

tests/src/Kernel/ConfigHandlerTest.php, line 46

Class

ConfigHandlerTest
Automated tests for ConfigName class.

Namespace

Drupal\Tests\update_helper\Kernel

Code

protected function getUpdateDefinition() {
  return 'field.storage.node.body:' . PHP_EOL . '  expected_config:' . PHP_EOL . '    lost_config: text' . PHP_EOL . '    settings:' . PHP_EOL . '      max_length: 123' . PHP_EOL . '    status: false' . PHP_EOL . '    type: text' . PHP_EOL . '  update_actions:' . PHP_EOL . '    delete:' . PHP_EOL . '      lost_config: text' . PHP_EOL . '      settings:' . PHP_EOL . '        max_length: 123' . PHP_EOL . '    add:' . PHP_EOL . '      cardinality: 1' . PHP_EOL . '    change:' . PHP_EOL . '      settings: {  }' . PHP_EOL . '      status: true' . PHP_EOL . '      type: text_with_summary' . PHP_EOL;
}