NilPortugues\Tests\Laravel5\JsonApi\JsonApiControllerTest::testListActionCanSort PHP Метод

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

    public function testListActionCanSort()
    {
        $this->call('GET', 'http://localhost/employees?sort=-id');
        $response = $this->response;
        $this->assertEquals(200, $response->getStatusCode());
        $this->assertEquals('application/vnd.api+json', $response->headers->get('Content-type'));
        $this->assertContains('&sort=-id', $response->getContent());
    }