public function control()
 {
     $this->installer = Installer::getInstance();
     if (@$_GET['step'] != 'repair') {
         $this->checkForExistingInstallation();
     }
     //route user to the right step
     if (!isset($_GET['step']) || $_GET['step'] == '1') {
         $this->step1();
     } elseif ($_GET['step'] == '2') {
         $this->step2();
     } elseif ($_GET['step'] == '3') {
         $this->step3();
     } elseif ($_GET['step'] == 'repair') {
         $repair_what = isset($_GET['m']) ? $_GET['m'] : '';
         $this->repairInstallation($repair_what);
     } else {
         $this->step1();
     }
     return $this->generateView();
 }
Beispiel #2
0
 public function testGetTablesToInstall()
 {
     $installer = Installer::getInstance();
     $tables = $installer->getTablesToInstall();
     $expected_tables = array('encoded_locations', 'follower_count', 'follows', 'instances', 'links', 'owner_instances', 'owners', 'plugin_options', 'plugins', 'post_errors', 'posts', 'user_errors', 'users');
     $this->assertIdentical($tables, $expected_tables);
 }
 public function testGetTablesToInstall()
 {
     $installer = Installer::getInstance();
     $tables = $installer->getTablesToInstall();
     $expected_tables = array('encoded_locations', 'favorites', 'follower_count', 'follows', 'group_member_count', 'group_members', 'groups', 'hashtags', 'hashtags_posts', 'instances', 'instances_twitter', 'invites', 'links', 'links_short', 'mentions', 'mentions_posts', 'options', 'owner_instances', 'owners', 'places', 'places_posts', 'plugins', 'post_errors', 'posts', 'stream_data', 'stream_procs', 'user_errors', 'users');
     $this->assertIdentical($tables, $expected_tables);
 }
Beispiel #4
0
 public function testGetTablesToInstall()
 {
     $installer = Installer::getInstance();
     $tables = $installer->getTablesToInstall();
     $expected_tables = array('cookies', 'count_history', 'encoded_locations', 'favorites', 'follows', 'group_members', 'groups', 'hashtags', 'hashtags_posts', 'insight_baselines', 'insights', 'instances', 'instances_facebook', 'instances_hashtags', 'instances_twitter', 'invites', 'links', 'links_short', 'mentions', 'mentions_posts', 'options', 'owner_instances', 'owners', 'photos', 'places', 'places_posts', 'plugins', 'post_errors', 'posts', 'sessions', 'stream_data', 'stream_procs', 'user_errors', 'user_versions', 'users', 'videos');
     $this->assertIdentical($tables, $expected_tables);
 }