AuthBucket\Bundle\OAuth2Bundle\Tests\TokenType\BearerTokenTypeHandlerTest::testGet PHP Method

testGet() public method

public testGet ( )
    public function testGet()
    {
        $parameters = ['access_token' => 'eeb5aa92bbb4b56373b9e0d00bc02d93'];
        $server = [];
        $client = $this->createClient();
        $crawler = $client->request('GET', '/api/oauth2/debug', $parameters, [], $server);
        $resourceResponse = json_decode($client->getResponse()->getContent(), true);
        $this->assertSame('demousername1', $resourceResponse['username']);
    }