minkphp/MinkGoutteDriver

No support for different request methods.

georgevanvliet opened this issue · 1 comments

Currently I cannot specify the request method that I want to use. For testing REST interfaces this is rather unfortunate :)

Currently all requests are set as 'GET' in BrowserkitDriver:

$this->client->request('GET', $this->prepareUrl($url));

Please allow for an optional parameter to specify the request method.

stof commented

Mink is about emulating a browser. With a browser, you cannot send a POST request to a given url, you need to submit a form for this.
If you want to test a REST api, use an API client (Buzz or Guzzle for instance), not a browser emulator.