Pinq\Tests\Integration\Queries\QueryBuildingTestsTrait::testOrderByAscendingWithThenByDescending PHP Метод

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

    public function testOrderByAscendingWithThenByDescending()
    {
        $this->assertRequestIsCorrect(function (IQueryable $queryable) {
            return $queryable->orderByAscending(function ($i) {
                return $i;
            })->thenBy(function ($i) {
                return $i;
            }, Direction::DESCENDING);
        }, $this->orderByAscendingWithThenByDescendingQuery());
        $this->assertRequestIsCorrect(function (IQueryable $queryable) {
            return $queryable->orderByAscending(function ($i) {
                return $i;
            })->thenBy(function ($i) {
                return $i;
            }, SORT_DESC);
        }, $this->orderByAscendingWithThenByDescendingQuery());
        $this->assertRequestIsCorrect(function (IQueryable $queryable) {
            return $queryable->orderByAscending(function ($i) {
                return $i;
            })->thenByDescending(function ($i) {
                return $i;
            });
        }, $this->orderByAscendingWithThenByDescendingQuery());
    }
QueryBuildingTestsTrait