Ojs\ApiBundle\Tests\Controller\ContactTypesRestControllerTest::testPatchContacttypeAction PHP Метод

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

    public function testPatchContacttypeAction()
    {
        $content = [];
        $content['translations'] = [$this->locale => ['name' => 'PHPUnit Test Name Field ' . $this->locale . ' - Patch', 'description' => 'PHPUnit Test Description Field ' . $this->locale . ' - Patch']];
        $this->client->request('PATCH', '/api/v1/contacttypes/1?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(204, $this->client);
    }