Ojs\ApiBundle\Tests\Controller\LangRestControllerTest::testPostLangAction PHP Метод

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

public testPostLangAction ( )
    public function testPostLangAction()
    {
        $content = ['code' => 'ph', 'name' => 'PHPUnit Name Field - POST', 'rtl' => false];
        $this->client->request('POST', '/api/v1/langs?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(201, $this->client);
    }