Ojs\ApiBundle\Tests\Controller\JournalArticleFileRestControllerTest::testPutFileAction PHP Метод

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

public testPutFileAction ( )
    public function testPutFileAction()
    {
        $content = ['file' => ['filename' => 'sampleArticleFile.pdf', 'encoded_content' => $this->sampleArticleFileEncoded], 'type' => 2, 'langCode' => 1, 'title' => 'PHPUnit Test Title Put', 'description' => 'PHPUnit Test description Put'];
        $this->client->request('PUT', '/api/v1/journal/1/article/1/files/550?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(201, $this->client);
    }