Ojs\ApiBundle\Tests\Controller\JournalRestControllerTest::testPatchJournalAction PHP Метод

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

    public function testPatchJournalAction()
    {
        $content = ['translations' => [$this->secondLocale => ['title' => 'PHPUnit Test Title Field ' . $this->secondLocale . ' - PATCH', 'subtitle' => 'PHPUnit Test Subtitle Field ' . $this->secondLocale . ' - PATCH', 'description' => 'PHPUnit Test Description Field ' . $this->secondLocale . ' - PATCH', 'titleAbbr' => 'PHPUnit Test Title Abbr Field ' . $this->secondLocale . ' - PATCH']]];
        $this->client->request('PATCH', '/api/v1/journals/1?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(204, $this->client);
    }