Ojs\ApiBundle\Tests\Controller\JournalArticleAuthorRestControllerTest::testPutAuthorAction PHP Méthode

testPutAuthorAction() public méthode

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