$config_factory =
$this->
createMock('Drupal\Core\Config\ConfigFactoryInterface'
);
$config_factory->
expects($this->
once()) ->
method('getEditable'
) ->
willReturn($config);
$static_override =
new StaticMenuLinkOverrides($config_factory);
if (is_array($ids)) { $static_override->
deleteMultipleOverrides($ids);
} else { $static_override->
deleteOverride($ids);
} } /**
* Provides test data for testDeleteOverrides.
*/
public function providerTestDeleteOverrides() { $data =
[];
// Delete a non existing ID.
$data[] =
['test0',
[],
[]];
// Delete an existing ID.