// Make unsticky action.
$edit =
[ 'node_bulk_form[0]' => TRUE,
'action' => 'node_make_unsticky_action',
];
$this->
submitForm($edit, 'Apply to selected items'
);
$node =
$this->
loadNode($node->
id());
$this->
assertFalse($node->
isSticky(), 'Node is not sticky anymore'
);
// Promote to front page.
$this->
assertFalse($node->
isPromoted(), 'Node is not promoted to the front page'
);
$this->
assertFalse($node->
getTranslation('en-gb'
)->
isPromoted(), 'Node translation is not promoted to the front page'
);
$this->
assertFalse($node->
getTranslation('it'
)->
isPromoted(), 'Node translation is not promoted to the front page'
);
$edit =
[ 'node_bulk_form[0]' => TRUE,
'action' => 'node_promote_action',
];
$this->
submitForm($edit, 'Apply to selected items'
);
$node =
$this->
loadNode($node->
id());
$this->
assertTrue($node->
isPromoted(), 'Node has been promoted to the front page'
);
$this->
assertFalse($node->
getTranslation('en-gb'
)->
isPromoted(), 'Node translation has not been promoted to the front page'
);
$this->
assertFalse($node->
getTranslation('it'
)->
isPromoted(), 'Node translation has not been promoted to the front page'
);