Skip to content

Commit

Permalink
Merge pull request #82 from Lloople/patch-1
Browse files Browse the repository at this point in the history
Fix typo in Testing docs
  • Loading branch information
Christoph Rumpel authored Oct 2, 2018
2 parents 21f5359 + 903340f commit 022a60d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

- [Introduction](#introduction)
- [Testing Multiple Replies](#testing-multiple-replies)
- [Simulating User Messages](#simulationg-user-messages)
- [Simulating User Messages](#simulating-user-messages)
- [Available Assertions](#available-assertions)
- [Testing Conversations](#testing-conversations)
- [Testing Events](#testing-events)
- [Advanced Testing](#advanced-testing)

> {callout-info} The BotMan testing features are only available in combination with [BotMan Studio](/__version__/botman-studio).
<a id="introduction"></a>
## Introduction

Like Laravel, BotMan is build with testing in mind. Every part of it is well tested and this is the only way to keep such a big project running properly.
Expand Down Expand Up @@ -265,7 +266,7 @@ public function testStartConversation()
{
$this->bot
->receivesEvent('event_name')
->assertReplies('Received event');
->assertReply('Received event');
}
```

Expand All @@ -276,7 +277,7 @@ public function testStartConversation()
{
$this->bot
->receivesEvent('event_name', ['key' => 'value'])
->assertReplies('Received event);
->assertReply('Received event');
}
```

Expand Down

0 comments on commit 022a60d

Please sign in to comment.