/** * Drop the database and kill the connection */ public function tearDown() { if (isset(ThinkUpTestDatabaseHelper::$PDO)) { $this->testdb_helper->drop($this->test_database_name); } parent::tearDown(); }
/** * Drop the database and kill the connection */ public function tearDown() { if (isset(ThinkUpTestDatabaseHelper::$PDO)) { ThinkUpTestDatabaseHelper::$PDO->exec('SET SESSION sql_mode = "";'); $this->testdb_helper->drop($this->test_database_name); } parent::tearDown(); }
public function tearDown() { parent::tearDown(); // delete test email file if it exists $test_email = FileDataManager::getDataPath(Mailer::EMAIL); if (file_exists($test_email)) { unlink($test_email); } }
public function tearDown() { parent::tearDown(); // delete test email file if it exists $test_email = THINKUP_WEBAPP_PATH . '_lib/view/compiled_view' . Mailer::EMAIL; if (file_exists($test_email)) { unlink($test_email); } }
/** * Drop the database and kill the connection */ public function tearDown() { $this->testdb_helper->drop($this->db); $this->db->closeConnection($this->conn); parent::tearDown(); // delete test email file if it exists $test_email = THINKUP_WEBAPP_PATH . '_lib/view/compiled_view' . self::TEST_EMAIL; if(file_exists($test_email)) { unlink($test_email); } }
public function tearDown() { parent::tearDown(); $config = Config::getInstance(); $config->setValue("mandrill_api_key", ""); // delete test email file if it exists $test_email = FileDataManager::getDataPath(Mailer::EMAIL); if (file_exists($test_email)) { unlink($test_email); } }
/** * Drop the database and kill the connection */ public function tearDown() { if (isset(ThinkUpTestDatabaseHelper::$PDO)) { $this->testdb_helper->drop($this->test_database_name); } parent::tearDown(); // delete test email file if it exists $test_email = THINKUP_WEBAPP_PATH . '_lib/view/compiled_view' . self::TEST_EMAIL; if(file_exists($test_email)) { unlink($test_email); } }
public function setUp() { global $TEST_SERVER_DOMAIN; $this->url = $TEST_SERVER_DOMAIN; $this->DEBUG = getenv('TEST_DEBUG') !== false ? true : false; putenv("MODE=TESTS"); $this->get($this->url . '/install/setmode.php?m=tests'); ThinkUpBasicUnitTestCase::isTestEnvironmentReady(); require THINKUP_ROOT_PATH . 'tests/config.tests.inc.php'; $this->test_database_name = $TEST_DATABASE; if (ThinkUpUnitTestCase::ramDiskTestMode()) { putenv("RD_MODE=1"); require THINKUP_WEBAPP_PATH . 'config.inc.php'; $this->test_database_name = $THINKUP_CFG['db_name']; $this->get($this->url . '/install/setmode.php?rd=1'); } }
public function tearDown() { parent::tearDown(); }
/** * Preemptively halt test run if integration testing environment requirement isn't met. * Prevents unnecessary/inexplicable failures and data loss. */ public static function isWebTestEnvironmentReady() { ThinkUpBasicUnitTestCase::isTestEnvironmentReady(); }
/** * Drop the database and kill the connection */ public function tearDown() { $this->testdb_helper->drop($this->db); $this->db->closeConnection($this->conn); parent::tearDown(); }