AuthBucket\Bundle\OAuth2Bundle\Tests\GrantType\PasswordGrantTypeHandlerTest::testGoodPasswordNoScope PHP Method

testGoodPasswordNoScope() public method

    public function testGoodPasswordNoScope()
    {
        $parameters = ['grant_type' => 'password', 'username' => 'demousername3', 'password' => 'demopassword3'];
        $server = ['PHP_AUTH_USER' => 'http://democlient3.com/', 'PHP_AUTH_PW' => 'demosecret3'];
        $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()));
    }