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); }