Ojs\ApiBundle\Tests\Controller\JournalRestControllerTest::testPostJournalAction PHP Метод

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

    public function testPostJournalAction()
    {
        $content = ['translations' => [$this->locale => ['title' => 'PHPUnit Test Title Field - POST', 'subtitle' => 'PHPUnit Test Subtitle Field - POST', 'description' => 'PHPUnit Test Description Field - POST', 'titleAbbr' => 'PHPUnit Test Title Abbr Field - POST', 'footerText' => 'footer text']], 'publisher' => 1, 'mandatoryLang' => 1, 'languages' => [1, 2, 5], 'periods' => [1, 2, 3], 'subjects' => [1, 2], 'domain' => 'domain.com', 'issn' => '', 'eissn' => '', 'founded' => 2016, 'googleAnalyticsId' => 'Google Ana. ID', 'country' => 2, 'slug' => 'phpunit-test', 'tags' => ['phpunit']];
        $this->client->request('POST', '/api/v1/journals?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(201, $this->client);
    }