Commit 99de12d7 authored by romanb's avatar romanb

changes on the new test suite.

parent 57a5101e
......@@ -5,7 +5,7 @@ class Orm_Component_TestTest extends Doctrine_OrmTestCase
{
protected function setUp()
{
$this->loadFixture('forum', 'someusers');
$this->loadFixture('forum', 'common_users');
}
public function testTest()
......
<?php
$fixture = array(
'tableName' => 'dummy',
'model' => 'ForumUser',
'rows' => array(
array(
'column1' => 'value1',
'column2' => 'value2',
'column3' => 'value3'
'id' => 1,
'username' => 'romanb'
),
array(
'column1' => 'value4',
'column2' => 'value5',
'column3' => 'value6'
'id' => 2,
'username' => 'jwage'
)
)
);
\ No newline at end of file
......@@ -15,8 +15,8 @@ class Doctrine_OrmTestCase extends Doctrine_TestCase
if ( ! isset(self::$_fixtures[$uniqueName])) {
// load fixture file
$fixtureFile = 'fixtures' . DIRECTORY_SEPARATOR . 'orm' . DIRECTORY_SEPARATOR
. $package . DIRECTORY_SEPARATOR . $name . '.php';
$fixtureFile = 'fixtures' . DIRECTORY_SEPARATOR . $package . DIRECTORY_SEPARATOR
. $name . '.php';
require $fixtureFile;
self::$_fixtures[$uniqueName] = $fixture;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment