->
willReturn([]);
$this->container->
set('entity_type.manager',
$entity_type_manager);
$this->container->
set('string_translation',
$this->
getStringTranslationStub());
} /**
* Tests local task existence.
*
* @dataProvider getUserAdminRoutes
*/
public function testUserAdminLocalTasks($route,
$expected) { $this->
assertLocalTasks($route,
$expected);
} /**
* Provides a list of routes to test.
*/
public function getUserAdminRoutes() { return [ ['entity.user.collection',
[['entity.user.collection', 'user.admin_permissions', 'entity.user_role.collection', 'user.role.settings'
]]],
['user.admin_permissions',
[['entity.user.collection', 'user.admin_permissions', 'entity.user_role.collection', 'user.role.settings'
]]],
['entity.user_role.collection',
[['entity.user.collection', 'user.admin_permissions', 'entity.user_role.collection', 'user.role.settings'
]]],
['entity.user.admin_form',
[['user.account_settings_tab'
]]],
];