$config->
expects($old_definitions !=
$new_definitions ?
$this->
once() :
$this->
never()) ->
method('save'
);
$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 =
[];