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