Commit 57a5101e authored by romanb's avatar romanb

changes on the new test suite.

parent 04276090
...@@ -12,4 +12,19 @@ class Orm_Component_TestTest extends Doctrine_OrmTestCase ...@@ -12,4 +12,19 @@ class Orm_Component_TestTest extends Doctrine_OrmTestCase
{ {
$this->assertEquals(0, 0); $this->assertEquals(0, 0);
} }
public function testFixture()
{
$forumUsers = $this->sharedFixture['connection']->query("FROM ForumUser u");
$this->assertEquals(2, count($forumUsers));
$forumUsers[0]->delete();
unset($forumUsers[0]);
$this->assertEquals(1, count($forumUsers));
}
public function testFixture2()
{
$forumUsers = $this->sharedFixture['connection']->query("FROM ForumUser u");
$this->assertEquals(2, count($forumUsers));
}
} }
\ No newline at end of file
<?php
$fixture = array(
'model' => 'ForumUser',
'rows' => array(
array(
'id' => 1,
'username' => 'romanb'
),
array(
'id' => 2,
'username' => 'jwage'
)
)
);
\ No newline at end of file
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