$this->nodes
[] =
$this->
createNode(['title' => 'live - 2 - r2 - unpublished', 'body' => 'node 2', 'created' =>
$this->createdTimestamp++, 'status' => FALSE
]);
$translation =
$this->nodes
[0
]->
addTranslation('de'
);
$translation->
setTitle('live - 1 - r1 - published - de'
);
$translation->
save();
} /**
* Tests various scenarios for creating and publishing content in workspaces.
*/
public function testWorkspaces() { $this->
initializeWorkspacesModule();
// Notes about the structure of the test scenarios:
// - a multi-dimensional array keyed by the workspace ID, then by the entity
// ID and finally by the revision ID.
// - 'default_revision' indicates the entity revision that should be
// returned when loading an entity, non-revision entity queries and
// non-revision views *in a given workspace*, it does not indicate what is
// actually stored in the base and data entity tables.
$test_scenarios =
[];
// The $expected_workspace_association array holds the revision IDs which