CC-5651: Unit Test the Scheduler

* Mock config for database connections
This commit is contained in:
Albert Santoni 2013-12-19 11:40:35 -05:00
parent 6512f033d1
commit b95fb38164
3 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,29 @@
[database]
host = localhost
dbname = airtime_test
dbuser = airtime
dbpass = airtime
[rabbitmq]
host = 127.0.0.1
port = 5672
user = airtime
password = GTUR1HVMU7GPIO3FETKY
vhost = /airtime
[general]
api_key = H2NRICX6CM8F50CU123C
web_server_user = www-data
airtime_dir = /usr/share/airtime
base_url = localhost
base_port = 80
base_dir = /
cache_ahead_hours = 1
[monit]
monit_user = guest
monit_password = airtime
[soundcloud]
connection_retries = 3
time_between_retries = 60

View File

@ -43,6 +43,10 @@ if (file_exists('/usr/share/php/libzend-framework-php')) {
set_include_path('/usr/share/php/libzend-framework-php' . PATH_SEPARATOR . get_include_path());
}
$_SERVER['AIRTIME_CONF'] = 'airtime.conf';
require_once 'Zend/Application.php';
require_once 'Zend/Config.php';
#require_once 'DatabaseTestCase.php';
require_once 'Zend/Session.php';
Zend_Session::start();

View File

@ -22,7 +22,6 @@ class ShowTest extends Zend_Test_PHPUnit_DatabaseTestCase
public function appBootstrap()
{
$this->application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH .'/configs/application.ini');
Zend_Session::start();
$this->application->bootstrap();
}