shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java
public void addIntentFilterForProvider(ComponentName componentName, IntentFilter filter)
      throws NameNotFoundException {
    addIntentFilterForComponent(componentName, filter, providerFilters);
  }
public void addIntentFilterForProvider(ComponentName componentName, IntentFilter filter)
      throws NameNotFoundException {
    addIntentFilterForComponent(componentName, filter, providerFilters);
  }
Add intent filter for given provider.

@throws NameNotFoundException if component with given name doesn't exist.