createWorkspaceHierarchy example

    // track it anymore.     $this->entityTypeManager->getStorage('node')->deleteRevision(6);
    $expected_workspace_association = ['stage' => []];
    $this->assertWorkspaceAssociation($expected_workspace_association, 'node');
  }

  /** * Tests entity tracking in workspace descendants. */
  public function testWorkspaceHierarchy() {
    $this->initializeWorkspacesModule();
    $this->createWorkspaceHierarchy();

    // The two pre-existing nodes are not overridden in any non-default     // workspace.     $expected_workspace_association = [
      'stage' => [],
      'dev' => [],
      'local_1' => [],
      'local_2' => [],
      'qa' => [],
    ];
    $this->assertWorkspaceAssociation($expected_workspace_association, 'node');

    
/** * Tests workspace merging. * * @covers ::merge * @covers ::getNumberOfChangesOnSource * @covers ::getNumberOfChangesOnTarget * @covers ::getDifferringRevisionIdsOnSource * @covers ::getDifferringRevisionIdsOnTarget */
  public function testWorkspaceMerger() {
    $this->initializeWorkspacesModule();
    $this->createWorkspaceHierarchy();

    // Generate content in the workspace hierarchy with the following structure:     // Live:     // - Test article 1 - live     //     // Stage:     // - Test article 2 - stage     //     // Dev:     // - Test article 2 - stage     // - Test article 3 - dev
Home | Imprint | This part of the site doesn't use cookies.