1
0
mirror of synced 2025-02-22 15:13:13 +03:00
This commit is contained in:
doctrine 2006-05-25 12:32:57 +00:00
parent 004f3cb414
commit f7a3c2f353
2 changed files with 9 additions and 2 deletions

View File

@ -78,6 +78,13 @@ class Doctrine_QueryTestCase extends Doctrine_UnitTestCase {
$this->assertEqual($boards[0]->Threads->count(), 1); $this->assertEqual($boards[0]->Threads->count(), 1);
$this->assertEqual(count($this->dbh), $count); $this->assertEqual(count($this->dbh), $count);
$this->assertEqual($boards[0]->Threads[0]->Entries->count(), 1); $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() { public function testQueryWithAliases() {

View File

@ -23,7 +23,7 @@ error_reporting(E_ALL);
$test = new GroupTest("Doctrine Framework Unit Tests"); $test = new GroupTest("Doctrine Framework Unit Tests");
//$test->addTestCase(new Sensei_UnitTestCase()); //$test->addTestCase(new Sensei_UnitTestCase());
/**
$test->addTestCase(new Doctrine_SessionTestCase()); $test->addTestCase(new Doctrine_SessionTestCase());
$test->addTestCase(new Doctrine_TableTestCase()); $test->addTestCase(new Doctrine_TableTestCase());
@ -45,7 +45,7 @@ $test->addTestCase(new Doctrine_ConfigurableTestCase());
$test->addTestCase(new Doctrine_Collection_OffsetTestCase()); $test->addTestCase(new Doctrine_Collection_OffsetTestCase());
$test->addTestCase(new Doctrine_CollectionTestCase()); $test->addTestCase(new Doctrine_CollectionTestCase());
*/
$test->addTestCase(new Doctrine_QueryTestCase()); $test->addTestCase(new Doctrine_QueryTestCase());
//$test->addTestCase(new Doctrine_Cache_FileTestCase()); //$test->addTestCase(new Doctrine_Cache_FileTestCase());