public function testSort() { $sort = array('-m_visits'); $this->query->setSort($sort); $this->assertTrue($this->query->hasSort()); $this->assertSame($sort, $this->query->getSort()); }