Doctrine_OrmTestSuite.php 926 Bytes
Newer Older
romanb's avatar
romanb committed
1 2 3 4 5 6 7 8 9 10
<?php 
/**
 * The outermost test suite for all orm related testcases & suites.
 *
 * Currently the orm suite uses a normal connection object.
 * Upon separation of the DBAL and ORM package this suite should just use a orm
 * connection/session/manager instance as the shared fixture.
 */
class Doctrine_OrmTestSuite extends Doctrine_TestSuite
{
11 12
    protected function setUp()
    {
13
        $config = new Doctrine_ORM_Configuration();
romanb's avatar
romanb committed
14
        $eventManager = new Doctrine_Common_EventManager();
15
        $connectionOptions = array(
romanb's avatar
romanb committed
16 17
            'driverClass' => 'Doctrine_DriverMock',
            'wrapperClass' => 'Doctrine_ConnectionMock',
18 19 20
            'user' => 'john',
            'password' => 'wayne'      
        );      
21
        $em = Doctrine_ORM_EntityManager::create($connectionOptions, 'mockEM', $config, $eventManager);
22 23 24 25 26
        $this->sharedFixture['em'] = $em;
    }
    
    protected function tearDown()
    {} 
romanb's avatar
romanb committed
27
}