AuthBucket\Bundle\OAuth2Bundle\Tests\GrantType\AuthorizationCodeGrantTypeHandlerTest::testGoodAuthCodeNoStoredRedirectUri PHP Метод

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

    public function testGoodAuthCodeNoStoredRedirectUri()
    {
        $parameters = ['grant_type' => 'authorization_code', 'code' => '08fb55e26c84f8cb060b7803bc177af8', 'redirect_uri' => 'http://democlient4.com/redirect_uri', 'client_id' => 'http://democlient4.com/', 'client_secret' => 'demosecret4', 'state' => '08fb55e26c84f8cb060b7803bc177af8'];
        $server = [];
        $client = $this->createClient();
        $crawler = $client->request('POST', '/api/oauth2/token', $parameters, [], $server);
        $this->assertSame(200, $client->getResponse()->getStatusCode());
        $this->assertNotNull(json_decode($client->getResponse()->getContent()));
    }