Ojs\ApiBundle\Tests\Controller\SubjectRestControllerTest::testPatchSubjectAction PHP Метод

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

    public function testPatchSubjectAction()
    {
        $content = ['translations' => [$this->secondLocale => ['subject' => 'PHPUnit Test Subject Field ' . $this->secondLocale . ' - PATCH', 'description' => 'PHPUnit Test Description Field ' . $this->secondLocale . ' - PATCH']]];
        $this->client->request('PATCH', '/api/v1/subjects/1?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(204, $this->client);
    }