Ojs\ApiBundle\Tests\Controller\PageRestControllerTest::testPutPageAction PHP Метод

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

public testPutPageAction ( )
    public function testPutPageAction()
    {
        $content = ['translations' => [$this->locale => ['title' => 'PHPUnit Test Title Field ' . $this->locale . ' - PUT', 'body' => 'PHPUnit Test Body Field ' . $this->locale . ' - PUT']], 'visible' => 1];
        $this->client->request('PUT', '/api/v1/pages/550?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(201, $this->client);
    }