JamesMoss\Flywheel\QueryExecuterTest::testSimpleOrdering PHP Метод

testSimpleOrdering() публичный Метод

public testSimpleOrdering ( )
    public function testSimpleOrdering()
    {
        $qe = new QueryExecuter($this->getRepo('countries'), $this->getPredicate(), array(), array('capital DESC', 'name ASC'));
        $result = $qe->run();
        $this->assertEquals('Croatia', $result->first()->id);
        $this->assertEquals('United States Minor Outlying Islands', $result[$result->count() - 1]->id);
    }