$apiMethods[] = 'VisitFrequency'; $apis[] = array($apiMethods, array('idSite' => self::$fixture->idSite, 'date' => '2012-08-09,2014-04-01', 'periods' => 'range', 'otherRequestParameters' => array('filter_limit' => 1000))); return $apis; } /** * @group Integration * * * NOTE: This test must be last since the new sites that get added are added in * random order. */ public function testDynamicResolverSitesCreated() { self::$fixture->logVisitsWithDynamicResolver(); // reload access so new sites are viewable Access::getInstance()->setSuperUserAccess(true); // make sure sites aren't created twice $piwikDotNet = API::getInstance()->getSitesIdFromSiteUrl('http://piwik.net'); $this->assertEquals(1, count($piwikDotNet)); $anothersiteDotCom = API::getInstance()->getSitesIdFromSiteUrl('http://anothersite.com'); $this->assertEquals(1, count($anothersiteDotCom)); $whateverDotCom = API::getInstance()->getSitesIdFromSiteUrl('http://whatever.com'); $this->assertEquals(1, count($whateverDotCom)); } public static function getOutputPrefix() { return 'ImportLogs'; } } Test_Piwik_Integration_ImportLogs::$fixture = new Test_Piwik_Fixture_ManySitesImportedLogs();
public static function setUpWebsitesAndGoals() { // for conversion testing self::createWebsite(self::$dateTime); self::$idGoal = Piwik_Goals_API::getInstance()->addGoal(self::$idSite, 'all', 'url', 'http', 'contains', false, 5); }