CC-5651: Unit Test the Scheduler
* Mock config for database connections
This commit is contained in:
parent
6512f033d1
commit
b95fb38164
|
@ -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
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue