Ojs\ApiBundle\Tests\Controller\PostRestControllerTest::testPatchPostAction PHP Метод

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

public testPatchPostAction ( )
    public function testPatchPostAction()
    {
        $id = $this->sampleObjectLoader->loadPost();
        $content = ['translations' => [$this->secondLocale => ['title' => 'PHPUnit Test Title Field ' . $this->secondLocale . ' - PATCH', 'content' => 'PHPUnit Test Content Field ' . $this->secondLocale . ' - PATCH']]];
        $this->client->request('PATCH', '/api/v1/posts/' . $id . '?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(204, $this->client);
    }