From ebc7d8d3792e19553d379f0ce1a53ba9da31814f Mon Sep 17 00:00:00 2001 From: zYne Date: Sat, 1 Sep 2007 16:26:58 +0000 Subject: [PATCH] --- tests/Collection/SnapshotTestCase.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/Collection/SnapshotTestCase.php b/tests/Collection/SnapshotTestCase.php index 9b6b46702..32b9f0881 100644 --- a/tests/Collection/SnapshotTestCase.php +++ b/tests/Collection/SnapshotTestCase.php @@ -40,13 +40,16 @@ class Doctrine_Collection_Snapshot_TestCase extends Doctrine_UnitTestCase { public function prepareTables() { - $this->tables[] = 'Book'; + $this->tables = array('Entity', 'User', 'Group', 'Phonenumber', 'Email', 'Book'); parent::prepareTables(); } + public function testDiffForSimpleCollection() { - $coll = Doctrine_Query::create()->from('User u')->orderby('u.id')->execute(); + $q = Doctrine_Query::create()->from('User u')->orderby('u.id'); + + $coll = $q->execute(); $this->assertEqual($coll->count(), 8); unset($coll[0]); @@ -62,6 +65,7 @@ class Doctrine_Collection_Snapshot_TestCase extends Doctrine_UnitTestCase $coll = Doctrine_Query::create()->from('User u')->execute(); $this->assertEqual($coll->count(), 7); } + public function testDiffForOneToManyRelatedCollection() { $q = new Doctrine_Query();