$this->
assertEquals('archived',
$french_node->moderation_state->value
);
$this->
assertFalse($french_node->
isPublished());
} /**
* Tests that individual translations can be moderated independently.
*/
public function testLanguageIndependentContentModeration() { // Create a published article in English (revision 1).
$this->
drupalGet('node/add/article'
);
$node =
$this->
submitNodeForm('Test 1.1 EN', 'published'
);
$this->
assertNotLatestVersionPage($node);
$edit_path =
$node->
toUrl('edit-form'
);
$translate_path =
$node->
toUrl('drupal:content-translation-overview'
);
// Create a new English draft (revision 2).
$this->
drupalGet($edit_path);
$this->
submitNodeForm('Test 1.2 EN', 'draft', TRUE
);
$this->
assertLatestVersionPage($node);
// Add a French translation draft (revision 3).
$this->
drupalGet($translate_path);