Ojs\ApiBundle\Tests\Controller\PublisherTypeRestControllerTest::testPutPublisherTypeAction PHP Метод

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

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