CC-5651: Unit Test the Scheduler

Got test to run!
This commit is contained in:
drigato 2013-12-19 15:31:12 -05:00
parent c4adbab04e
commit 3b27e74ca0
2 changed files with 11 additions and 0 deletions

View File

@ -21,6 +21,11 @@ set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library')
)));
set_include_path(implode(PATH_SEPARATOR, array(
get_include_path(),
realpath(APPLICATION_PATH . '/../library/propel/runtime/lib')
)));
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
get_include_path(),
@ -45,6 +50,11 @@ if (file_exists('/usr/share/php/libzend-framework-php')) {
require_once 'Zend/Application.php';
require_once 'Zend/Config.php';
require_once APPLICATION_PATH.'/configs/conf.php';
require_once 'propel/runtime/lib/Propel.php';
Propel::init("../application/configs/airtime-conf-production.php");
#require_once 'DatabaseTestCase.php';
require_once 'Zend/Session.php';
Zend_Session::start();

View File

@ -31,6 +31,7 @@ class ShowTest extends Zend_Test_PHPUnit_DatabaseTestCase
echo($dbhost);
AirtimeInstall::createDatabase();
AirtimeInstall::createDatabaseTables($dbuser, $dbpasswd, $dbname, $dbhost);
AirtimeInstall::SetDefaultTimezone();
$this->appBootstrap();