1
0
mirror of synced 2025-01-17 22:11:41 +03:00

changes on the new test suite.

This commit is contained in:
romanb 2008-02-10 15:16:24 +00:00
parent 57a5101e0f
commit 99de12d7ac
4 changed files with 17 additions and 19 deletions

View File

@ -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()

View File

@ -1,16 +0,0 @@
<?php
$fixture = array(
'tableName' => 'dummy',
'rows' => array(
array(
'column1' => 'value1',
'column2' => 'value2',
'column3' => 'value3'
),
array(
'column1' => 'value4',
'column2' => 'value5',
'column3' => 'value6'
)
)
);

14
tests/fixtures/forum/common_users.php vendored Normal file
View File

@ -0,0 +1,14 @@
<?php
$fixture = array(
'model' => 'ForumUser',
'rows' => array(
array(
'id' => 1,
'username' => 'romanb'
),
array(
'id' => 2,
'username' => 'jwage'
)
)
);

View 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;