Ojs\ApiBundle\Tests\Controller\PeriodRestControllerTest::testPatchPeriodAction PHP Метод

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

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