Ojs\ApiBundle\Tests\Controller\PublisherManagerRestControllerTest::testPostPublisherManagerAction PHP Метод

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

    public function testPostPublisherManagerAction()
    {
        $content = ['publisher' => 1, 'user' => rand(1, 25)];
        $this->client->request('POST', '/api/v1/publishermanagers?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(201, $this->client);
    }