Ojs\ApiBundle\Tests\Controller\IndexRestControllerTest::testPutIndexesAction PHP Метод

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

    public function testPutIndexesAction()
    {
        $content = ['name' => 'PHPUnitTest Name Field - PUT', 'logo' => 'http://logo.com/PUT', 'status' => true];
        $this->client->request('PUT', '/api/v1/indexes/550?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(201, $this->client);
    }