JamesMoss\Flywheel\QueryExecuterTest::testOrderingById PHP Méthode

testOrderingById() public méthode

public testOrderingById ( )
    public function testOrderingById()
    {
        $pred = $this->getPredicate();
        $qe = new QueryExecuter($this->getRepo('querybyid'), $pred, array(), array('__id DESC'));
        $result = $qe->run();
        $this->assertEquals(3, count($result));
        $this->assertEquals('Sweden', $result->first()->name);
        $this->assertEquals('Estonia', $result[1]->name);
        $this->assertEquals('Djibouti', $result[2]->name);
    }