From 57a5101e0f195fd6ac046b19261fdd5d5279ebe1 Mon Sep 17 00:00:00 2001 From: romanb Date: Sun, 10 Feb 2008 15:10:29 +0000 Subject: [PATCH] changes on the new test suite. --- tests/Orm/Component/TestTest.php | 15 +++++++++++++++ tests/fixtures/orm/forum/someusers.php | 14 -------------- 2 files changed, 15 insertions(+), 14 deletions(-) delete mode 100644 tests/fixtures/orm/forum/someusers.php 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