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

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

    public function testListActionCanFilterMembers()
    {
        $this->call('GET', 'http://localhost/employees?fields[employee]=company,first_name');
        $response = $this->response;
        $this->assertEquals(200, $response->getStatusCode());
        $this->assertEquals('application/vnd.api+json', $response->headers->get('Content-type'));
        $this->assertContains('&fields[employee]=company,first_name', $response->getContent());
    }