changes on the new test suite.
This commit is contained in:
parent
57a5101e0f
commit
99de12d7ac
@ -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()
|
||||
|
16
tests/fixtures/dbal/dummy.php
vendored
16
tests/fixtures/dbal/dummy.php
vendored
@ -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
14
tests/fixtures/forum/common_users.php
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
$fixture = array(
|
||||
'model' => 'ForumUser',
|
||||
'rows' => array(
|
||||
array(
|
||||
'id' => 1,
|
||||
'username' => 'romanb'
|
||||
),
|
||||
array(
|
||||
'id' => 2,
|
||||
'username' => 'jwage'
|
||||
)
|
||||
)
|
||||
);
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user