@Before public void setup() { Piwik.getInstance(Robolectric.application).setDryRun(true); Piwik.getInstance(Robolectric.application).setOptOut(true); }
public Tracker createTracker() throws MalformedURLException { return Piwik.getInstance(Robolectric.application).newTracker(testAPIUrl, 1); }