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

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

public testPutPeriodAction ( )
    public function testPutPeriodAction()
    {
        $content = ['translations' => [$this->locale => ['period' => 'PHPUnit Test Period Field ' . $this->locale . ' - PUT']]];
        $this->client->request('PUT', '/api/v1/periods/550?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(201, $this->client);
    }