diff --git a/tests/Orm/Component/TestTest.php b/tests/Orm/Component/TestTest.php index 5b06bb9b1..4682ef351 100644 --- a/tests/Orm/Component/TestTest.php +++ b/tests/Orm/Component/TestTest.php @@ -12,4 +12,19 @@ class Orm_Component_TestTest extends Doctrine_OrmTestCase { $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 diff --git a/tests/fixtures/orm/forum/someusers.php b/tests/fixtures/orm/forum/someusers.php deleted file mode 100644 index 6d071f401..000000000 --- a/tests/fixtures/orm/forum/someusers.php +++ /dev/null @@ -1,14 +0,0 @@ - 'ForumUser', - 'rows' => array( - array( - 'id' => 1, - 'username' => 'romanb' - ), - array( - 'id' => 2, - 'username' => 'jwage' - ) - ) -); \ No newline at end of file