Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasss93 committed Jan 6, 2024
1 parent f4d0744 commit 4008c20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Commands/HookSetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

use Mockery\MockInterface;
use Nutgram\Laravel\Console\HookSetCommand;
use SergiX44\Nutgram\Configuration;
use SergiX44\Nutgram\Nutgram;

test('nutgram:hook:set sets the bot webhook', function () {
$this->mock(Nutgram::class, function (MockInterface $mock) {
$mock->shouldReceive('setWebhook')
->with('https://foo.bar/hook', null, null, 50, null, null, null)
->with('https://foo.bar/hook', null, null, 50, Configuration::DEFAULT_ALLOWED_UPDATES, null, null)
->andReturn(0);
});

Expand All @@ -27,7 +28,7 @@

$this->mock(Nutgram::class, function (MockInterface $mock) use ($hashedAppKey) {
$mock->shouldReceive('setWebhook')
->with('https://foo.bar/hook', null, null, 50, null, null, $hashedAppKey)
->with('https://foo.bar/hook', null, null, 50, Configuration::DEFAULT_ALLOWED_UPDATES, null, $hashedAppKey)
->andReturn(0);
});

Expand Down

0 comments on commit 4008c20

Please sign in to comment.