Skip to content

Commit

Permalink
Add method to simulate we are receiving postback values (botman#5)
Browse files Browse the repository at this point in the history
* Add method to simulate we are receiving postback values

* Rename method and param
  • Loading branch information
Christoph Rumpel authored and mpociot committed Sep 4, 2017
1 parent 32a134e commit 91d611b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Testing/BotManTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@ public function receives($message)
return $this;
}

/**
* Simulates that we listen for a value
* but we use the receives method instead.
*
* @param $value
* @return BotManTester
*/
public function receivesValue($value)
{
return $this->receives($value);
}

/**
* @param $message
* @return BotManTester
Expand Down

0 comments on commit 91d611b

Please sign in to comment.