Ojs\ApiBundle\Tests\Controller\PublisherRestControllerTest::testPutPublisherAction PHP Метод

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

    public function testPutPublisherAction()
    {
        $content = ['translations' => [$this->locale => ['name' => 'PHPUnit Test Name Field - POST', 'about' => 'PHPUnit Test About Field en - POST']], 'slug' => 'phpunit-test-put', 'tags' => ['phpunit'], 'publisherType' => 3, 'address' => 'PHPUnit Test Adress Field - POST', 'phone' => '12345678910', 'fax' => '987654321', 'email' => '[email protected]', 'wiki' => 'http://www.wiki.com', 'domain' => 'behram.org', 'verified' => 1, 'country' => 216, 'status' => 0];
        $this->client->request('PUT', '/api/v1/publishers/550?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(201, $this->client);
    }