4 =>
[ 6 =>
['default_revision' => FALSE
],
7 =>
['default_revision' => TRUE
],
],
],
]);
$test_scenarios['push_stage_to_live'
] =
$revision_state;
$expected_workspace_association['push_stage_to_live'
] =
['stage' =>
[]];
// Check the initial state after the module was installed.
$this->
assertWorkspaceStatus($test_scenarios['initial_state'
], 'node'
);
$this->
assertWorkspaceAssociation($expected_workspace_association['initial_state'
], 'node'
);
// Unpublish node 1 in 'stage'.
$this->
switchToWorkspace('stage'
);
$node =
$this->entityTypeManager->
getStorage('node'
)->
load(1
);
$node->
setTitle('stage - 1 - r3 - unpublished'
);
$node->
setUnpublished();
$node->
save();
$this->
assertWorkspaceStatus($test_scenarios['unpublish_node_1_in_stage'
], 'node'
);
$this->
assertWorkspaceAssociation($expected_workspace_association['unpublish_node_1_in_stage'
], 'node'
);
// Publish node 2 in 'stage'.