Ojs\ApiBundle\Tests\Controller\UserRestControllerTest::testPatchUserAction PHP Метод

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

public testPatchUserAction ( )
    public function testPatchUserAction()
    {
        $entityId = $this->sampleObjectLoader->loadUser();
        $content = ['firstName' => $this->generateRandomString(10) . 'Patch', 'username' => $this->generateRandomString(10) . 'Patch', 'email' => $this->generateRandomString(10) . 'Patch@' . $this->generateRandomString(5) . '.com'];
        $this->client->request('PATCH', '/api/v1/users/' . $entityId . '?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(204, $this->client);
    }