コード例 #1
0
 /**
  * Setup globals according to /install/index.php
  */
 function setUp()
 {
     global $timestamp, $test_DB;
     $timestamp = time() - 120;
     // We start dates 2 minutes ago because their dates increase 1 second at a time and we want everything to be visible when the user watches the blogs right after install :P
     $GLOBALS['script_start_time'] = time();
     // used by installer
     parent::setUp();
 }
コード例 #2
0
 function setUp()
 {
     parent::setUp();
     ob_start();
     $this->create_current_tables();
     // we need current tables for Plugins to work
     ob_end_clean();
     $this->Plugins = new Plugins_admin();
 }