public function testOrderByAscendingWithThenByAscending()
{
$this->assertRequestIsCorrect(function (IQueryable $queryable) {
return $queryable->orderByAscending(function ($i) {
return $i;
})->thenBy(function ($i) {
return $i;
}, Direction::ASCENDING);
}, $this->orderByAscendingWithThenByAscendingQuery());
$this->assertRequestIsCorrect(function (IQueryable $queryable) {
return $queryable->orderByAscending(function ($i) {
return $i;
})->thenBy(function ($i) {
return $i;
}, SORT_ASC);
}, $this->orderByAscendingWithThenByAscendingQuery());
$this->assertRequestIsCorrect(function (IQueryable $queryable) {
return $queryable->orderByAscending(function ($i) {
return $i;
})->thenByAscending(function ($i) {
return $i;
});
}, $this->orderByAscendingWithThenByAscendingQuery());
}