/** * @expectedException Seat\Slackbot\Exceptions\SlackGroupException */ public function testInvitePrivateChannelException() { $slackUserId = "U1Z9LT9NP"; $slackChannelId = "G1Z9267L1"; $this->slackApi->invite($slackUserId, $slackChannelId, true); }