Ojs\ApiBundle\Tests\Controller\JournalArticleAuthorRestControllerTest::testPostAuthorAction PHP Method

testPostAuthorAction() public method

    public function testPostAuthorAction()
    {
        $content = ['author' => ['orcid' => 'orcid-phpunit', 'translations' => ['tr' => ['biography' => 'Hello biography tr'], 'en' => ['biography' => 'Hello biography en']], 'title' => 1, 'firstName' => 'Behram', 'lastName' => 'ÇELEN', 'middleName' => 'Middle Name', 'phone' => '1234567890', 'firstNameTransliterated' => '', 'middleNameTransliterated' => '', 'lastNameTransliterated' => '', 'initials' => '', 'email' => '[email protected]', 'address' => '', 'institution' => null, 'country' => 225, 'authorDetails' => 'hello'], 'authorOrder' => 3];
        $this->client->request('POST', '/api/v1/journal/1/article/1/authors?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(201, $this->client);
    }