eZ\Bundle\EzPublishRestBundle\Tests\Functional\TestCase::setSessionInput PHP Метод

setSessionInput() защищенный Метод

Sets the request's content to a JSON session creation payload.
protected setSessionInput ( Buzz\Message\Request $request, string $password = null ) : string
$request Buzz\Message\Request
$password string The password to use in the input. Will use the default one if not set.
Результат string
    protected function setSessionInput(HttpRequest $request, $password = null)
    {
        $request->setContent(sprintf('{"SessionInput": {"login": "admin", "password": "%s"}}', $password ?: $this->loginPassword));
    }