assertConfigUpdateImport example

$entity = Action::create([
      'id' => 'apple',
      'plugin' => 'action_message_action',
    ]);
    $entity->save();

    $this->checkSinglePluginConfigSync($entity, 'configuration', 'message', '');

    // Read the existing data, and prepare an altered version in sync.     $custom_data = $original_data = $this->container->get('config.storage')->read($name);
    $custom_data['configuration']['message'] = 'Granny Smith';
    $this->assertConfigUpdateImport($name$original_data$custom_data);

  }

  /** * Tests updating a block during import. */
  protected function doBlockUpdate() {
    // Create a test block with a known label.     $name = 'block.block.apple';
    $block = $this->placeBlock('system_powered_by_block', [
      'id' => 'apple',
      
Home | Imprint | This part of the site doesn't use cookies.