Ojs\ApiBundle\Tests\Controller\ContactTypesRestControllerTest::testPostContacttypeAction PHP Метод

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

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