Beispiel #1
0
 public function testQueryCount()
 {
     $someDate = new QDateTime();
     $someDate->setDate(2006, 1, 1);
     $intItemCount = Milestone::QueryCount(QQ::GreaterThan(QQN::Milestone()->Project->StartDate, $someDate), QQ::Distinct());
     $this->assertEqual($intItemCount, 3);
     $intItemCount2 = Milestone::QueryCount(QQ::GreaterThan(QQN::Milestone()->Project->StartDate, $someDate), QQ::Clause(QQ::Distinct(), QQ::Distinct()));
     $this->assertEqual($intItemCount2, 3);
 }