CC-2166: Packaging Improvements. Moved the Zend app into airtime_mvc. It is now installed to /var/www/airtime. Storage is now set to /srv/airtime/stor. Utils are now installed to /usr/lib/airtime/utils/. Added install/airtime-dircheck.php as a simple test to see if everything is install/uninstalled correctly.
This commit is contained in:
parent
514777e8d2
commit
b11cbd8159
4546 changed files with 138 additions and 51 deletions
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the Propel package.
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*
|
||||
* @license MIT License
|
||||
*/
|
||||
|
||||
require_once 'PHPUnit/Framework/TestCase.php';
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . "fixtures/bookstore/build/classes");
|
||||
Propel::init('fixtures/bookstore/build/conf/bookstore-conf.php');
|
||||
include_once 'tools/helpers/cms/CmsDataPopulator.php';
|
||||
|
||||
/**
|
||||
* Base class contains some methods shared by subclass test cases.
|
||||
*/
|
||||
abstract class CmsTestBase extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
protected $con;
|
||||
|
||||
/**
|
||||
* This is run before each unit test; it populates the database.
|
||||
*/
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->con = Propel::getConnection(PagePeer::DATABASE_NAME);
|
||||
$this->con->beginTransaction();
|
||||
CmsDataPopulator::depopulate($this->con);
|
||||
CmsDataPopulator::populate($this->con);
|
||||
}
|
||||
|
||||
/**
|
||||
* This is run after each unit test. It empties the database.
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
CmsDataPopulator::depopulate($this->con);
|
||||
$this->con->commit();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue