Skip to content

Commit 5ef70cc

Browse files
committed
Fix test
1 parent b18cabd commit 5ef70cc

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

phpunit.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,5 @@
2525
</exclude>
2626
</whitelist>
2727
</filter>
28-
<logging>
29-
<log type="coverage-html" target="build/html/" />
30-
<log type="coverage-clover" target="build/logs/clover.xml" />
31-
</logging>
32-
</phpunit>
28+
29+
</phpunit>

tests/Contracts/BotTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function test_debug_mode()
5050
{
5151
$dispatch = m::mock(Dispatcher::class);
5252
$dispatch
53-
->shouldReceive('fire')
53+
->shouldReceive('dispatch')
5454
->andReturnNull();
5555
$debug = new Debug($dispatch);
5656
$this->bot->setDebug($debug);

tests/Contracts/WebhookHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function setUp()
4343
->andReturn(false);
4444
$dispatch = m::mock(Dispatcher::class);
4545
$dispatch
46-
->shouldReceive('fire')
46+
->shouldReceive('dispatch')
4747
->andReturnNull();
4848
$this->debug = new Debug($dispatch);
4949
}

0 commit comments

Comments
 (0)