public function testEntityConditions() { $entity = new Record(array('model' => $this->_model, 'exists' => true)); $entity->id = 13; $query = new Query(compact('entity')); $this->assertEqual(array('id' => 13), $query->conditions()); }