'name' => 'foobar',
'mail' => 'foobar@example.com',
]);
$this->testUser->
save();
\Drupal::
service('current_user'
)->
setAccount($this->testUser
);
} /**
* @covers \Drupal\Core\Action\Plugin\Action\Derivative\EntityDeleteActionDeriver::getDerivativeDefinitions
*/
public function testGetDerivativeDefinitions() { $deriver =
new EntityDeleteActionDeriver(\Drupal::
entityTypeManager(), \Drupal::
translation());
$this->
assertEquals([ 'entity_test_mulrevpub' =>
[ 'type' => 'entity_test_mulrevpub',
'label' => 'Delete test entity - revisions, data table, and published interface',
'action_label' => 'Delete',
'confirm_form_route_name' => 'entity.entity_test_mulrevpub.delete_multiple_form',
],
'entity_test_revpub' =>
[ 'type' => 'entity_test_revpub',
'label' => 'Delete test entity - revisions and publishing status',
'action_label' => 'Delete',