Ojs\ApiBundle\Tests\Controller\ContactRestControllerTest::testPatchContactAction PHP Метод

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

    public function testPatchContactAction()
    {
        $content = ['address' => 'PHPUnit Test Address Field en - PUT', 'email' => 'PHPUnit Test Email Field en - PUT'];
        $this->client->request('PATCH', '/api/v1/contacts/1?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(204, $this->client);
    }