Ojs\ApiBundle\Tests\Controller\PersonTitleRestControllerTest::testPostPersonTitleAction PHP Метод

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

    public function testPostPersonTitleAction()
    {
        $content = ['translations' => [$this->locale => ['title' => 'PHPUnit Test Title Field ' . $this->locale . ' - POST']]];
        $this->client->request('POST', '/api/v1/persontitles?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(201, $this->client);
    }