diff --git a/tests/QueryTestCase.class.php b/tests/QueryTestCase.class.php index 4a09d01fa..114ab8840 100644 --- a/tests/QueryTestCase.class.php +++ b/tests/QueryTestCase.class.php @@ -78,6 +78,13 @@ class Doctrine_QueryTestCase extends Doctrine_UnitTestCase { $this->assertEqual($boards[0]->Threads->count(), 1); $this->assertEqual(count($this->dbh), $count); $this->assertEqual($boards[0]->Threads[0]->Entries->count(), 1); + + $q->from("Forum_Board-l.Threads-l.Entries-i"); + $this->assertEqual($boards->count(), 1); + $count = count($this->dbh); + $this->assertEqual($boards[0]->Threads->count(), 1); + $this->assertEqual(count($this->dbh), $count); + $this->assertEqual($boards[0]->Threads[0]->Entries->count(), 1); } public function testQueryWithAliases() { diff --git a/tests/run.php b/tests/run.php index ec74deb41..d7b5ba035 100644 --- a/tests/run.php +++ b/tests/run.php @@ -23,7 +23,7 @@ error_reporting(E_ALL); $test = new GroupTest("Doctrine Framework Unit Tests"); //$test->addTestCase(new Sensei_UnitTestCase()); -/** + $test->addTestCase(new Doctrine_SessionTestCase()); $test->addTestCase(new Doctrine_TableTestCase()); @@ -45,7 +45,7 @@ $test->addTestCase(new Doctrine_ConfigurableTestCase()); $test->addTestCase(new Doctrine_Collection_OffsetTestCase()); $test->addTestCase(new Doctrine_CollectionTestCase()); -*/ + $test->addTestCase(new Doctrine_QueryTestCase()); //$test->addTestCase(new Doctrine_Cache_FileTestCase());