->
disableOriginalConstructor() ->
getMock();
$executable->storage =
$storage;
$display =
$this->
getMockBuilder('Drupal\views\Plugin\views\display\DisplayPluginBase'
) ->
disableOriginalConstructor() ->
getMock();
$definition['title'
] = '';
$options =
[];
$node_bulk_form =
new NodeBulkForm([], 'node_bulk_form',
$definition,
$entity_type_manager,
$language_manager,
$messenger,
$entity_repository);
$node_bulk_form->
init($executable,
$display,
$options);
$reflected_actions =
(new \
ReflectionObject($node_bulk_form))->
getProperty('actions'
);
$this->
assertEquals(array_slice($actions, 0, -1, TRUE
),
$reflected_actions->
getValue($node_bulk_form));
}}