public function testOrder()
{
$snippet = $this->snippetFromMethod(Query::class, 'order');
$snippet->addLocal('query', $this->query);
$snippet->addUse(Query::class);
$snippet->invoke();
$this->assertEquals('birthDate', $this->query->queryObject()['order'][0]['property']['name']);
$this->assertEquals('DESCENDING', $this->query->queryObject()['order'][0]['direction']);
}