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);
    }