Ojs\ApiBundle\Tests\Controller\ArticleTypeRestControllerTest::testPatchArticleTypeAction PHP Метод

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

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