Merge branch 'unittests' of github.com:sourcefabric/Airtime into unittests

This commit is contained in:
drigato 2014-01-23 17:06:34 -05:00
commit c04d8714bb
9 changed files with 129 additions and 19 deletions

View file

@ -22,23 +22,13 @@ class ShowServiceDbTest extends Zend_Test_PHPUnit_DatabaseTestCase
public function setUp()
{
TestHelper::installTestDatabase();
//XXX: Zend_Test_PHPUnit_DatabaseTestCase doesn't use this for whatever reason:
//$this->bootstrap = array($this, 'appBootstrap');
//So instead we just manually call the appBootstrap here:
$this->appBootstrap();
TestHelper::setupZendBootstrap();
//$this->_nowDT = new DateTime("now", new DateTimeZone("UTC"));
parent::setUp();
}
public function appBootstrap()
{
$this->application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH .'/configs/application.ini');
$this->application->bootstrap();
}
public function getConnection()
{
if ($this->_connectionMock == null) {