/** * @Given /^Slack will respond ok to all requests$/ */ public function slackRespondsOk() { $this->plugin->addResponse($this->getSuccessResponse()); $this->plugin->getEventDispatcher()->addListener('mock.request', function () { $this->plugin->addResponse($this->getSuccessResponse()); }); }