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

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

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