public function install() { $this->configuration->install(); foreach (self::getScopes() as $scope) { $tracking = new Dao\LogTable($scope); $tracking->install(); } Cache::clearCacheGeneral(); $this->isInstalled = true; }
public function test_install_shouldMakeSureThereAreAtLeast5Installed() { $this->logVisit->removeCustomDimension(3); $this->logVisit->removeCustomDimension(4); $this->logVisit->removeCustomDimension(1); $this->assertSame(2, $this->logVisit->getNumInstalledIndexes()); // should automatically detect to install 3 $this->logVisit->install(); $this->assertSame(5, $this->logVisit->getNumInstalledIndexes()); $this->assertSame(array(2, 5, 6, 7, 8), $this->logVisit->getInstalledIndexes()); }