Skip to content

Commit

Permalink
Fix tests for guzzle 7
Browse files Browse the repository at this point in the history
  • Loading branch information
BSN4 committed Sep 10, 2020
1 parent 85b1230 commit ad0e32d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/NotificationDiscordChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Awssat\Tests\Notifications;

use Awssat\Notifications\Channels\DiscordWebhookChannel;
use Awssat\Notifications\Messages\DiscordEmbed;
use GuzzleHttp\Psr7\Response;
use Awssat\Notifications\Messages\DiscordMessage;
use GuzzleHttp\Client;
use Illuminate\Notifications\Messages\SlackMessage;
Expand Down Expand Up @@ -49,6 +49,8 @@ public function testCorrectPayloadIsSentToDiscord(Notification $notification, st
$this->guzzleHttp->shouldReceive('post')->andReturnUsing(function ($argUrl, $argPayload) use ($payload, $url) {
$this->assertEquals($argUrl, $url);
$this->assertEquals($argPayload, $payload);

return new Response();
});

$this->discordChannel->send(new NotificationDiscordChannelTestNotifiable, $notification);
Expand Down

0 comments on commit ad0e32d

Please sign in to comment.