eZ\Bundle\EzPublishRestBundle\Tests\Functional\SessionTest::testCreateSessionBadCredentials PHP 메소드

testCreateSessionBadCredentials() 공개 메소드

    public function testCreateSessionBadCredentials()
    {
        $request = $this->createHttpRequest('POST', '/api/ezp/v2/user/sessions', 'SessionInput+json', 'Session+json');
        $this->setSessionInput($request, 'badpassword');
        $response = $this->sendHttpRequest($request);
        self::assertHttpResponseCodeEquals($response, 401);
    }