Ojs\ApiBundle\Tests\Controller\JournalArticleRestControllerTest::testPutJournalArticleAction PHP Метод

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

    public function testPutJournalArticleAction()
    {
        $content = ['translations' => ['en' => ['title' => 'PHPUnit Test Title Field en - PUT', 'keywords' => ['PHPUnit Test Keywords Field en - PUT'], 'abstract' => 'PHPUnit Test Abstract Field en - PUT']], 'titleTransliterated' => 'PHPUnit Test Title Transliterated Field en - PUT', 'doi' => 'PHPUnit Test Doi Field en - POST', 'otherId' => 'PHPUnit Test Other ID Field en - PUT', 'pubdate' => '29-10-2015', 'pubdateSeason' => 8, 'firstPage' => 11, 'lastPage' => 999, 'uri' => 'http://phpunittest.com', 'abstractTransliterated' => 'PHPUnit Test Abstract Transliterated Field en - PUT', 'articleType' => 2, 'submissionDate' => '22-10-2015'];
        $this->client->request('PUT', '/api/v1/journal/1/articles/550?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(201, $this->client);
    }