public function testPostAnnouncementAction() { $content = ['title' => 'PHPUnit Test Title Field en - POST', 'image' => 'PHPUnit Test Image Field en - POST', 'content' => 'http://phpunit.com']; $this->client->request('POST', '/api/v1/announcements?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content)); $this->assertStatusCode(201, $this->client); }