Ojs\ApiBundle\Tests\Controller\PublisherTypeRestControllerTest::testPostPublisherTypeAction PHP Method

testPostPublisherTypeAction() public method

    public function testPostPublisherTypeAction()
    {
        $content = ['translations' => [$this->locale => ['name' => 'PHPUnit Test Name Field ' . $this->locale . ' - POST', 'description' => 'PHPUnit Test Description Field ' . $this->locale . ' - POST']]];
        $this->client->request('POST', '/api/v1/publishertypes?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(201, $this->client);
    }