Ojs\ApiBundle\Tests\Controller\JournalArticleRestControllerTest::testPatchJournalArticleAction PHP Метод

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

    public function testPatchJournalArticleAction()
    {
        $content = ['translations' => ['en' => ['title' => 'PHPUnit Test Title Field en - PATCH']]];
        $this->client->request('PATCH', '/api/v1/journal/1/articles/1?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(204, $this->client);
    }