Ojs\ApiBundle\Tests\Controller\PostRestControllerTest::testPutPostAction PHP Метод

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

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