// Publish action.
$edit =
[ 'node_bulk_form[0]' => TRUE,
'action' => 'node_publish_action',
];
$this->
submitForm($edit, 'Apply to selected items'
);
$node =
$this->
loadNode($node->
id());
$this->
assertTrue($node->
isPublished(), 'Node has been published again'
);
// Make sticky action.
$this->
assertFalse($node->
isSticky(), 'Node is not sticky'
);
$this->
assertFalse($node->
getTranslation('en-gb'
)->
isSticky(), 'Node translation is not sticky'
);
$this->
assertFalse($node->
getTranslation('it'
)->
isSticky(), 'Node translation is not sticky'
);
$edit =
[ 'node_bulk_form[0]' => TRUE,
'action' => 'node_make_sticky_action',
];
$this->
submitForm($edit, 'Apply to selected items'
);
$node =
$this->
loadNode($node->
id());
$this->
assertTrue($node->
isSticky(), 'Node has been made sticky'
);
$this->
assertFalse($node->
getTranslation('en-gb'
)->
isSticky(), 'Node translation has not been made sticky'
);
$this->
assertFalse($node->
getTranslation('it'
)->
isSticky(), 'Node translation has not been made sticky'
);