Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Commit

Permalink
clarified usage in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cas Leentfaar committed Feb 21, 2015
1 parent f774cca commit cca96e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Resources/doc/usage-during-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ public function testSend()
$payload->setUsername('acme');
$payload->setIconEmoji('birthday');

// no connection will be made by using the mocked client, it will simply create the proper response
// for this payload and fill it with some sensible data.
// no connection will be made by using the mocked client,
// it will simply create the proper response for this payload,
// in this case an instance of ChatPostMessagePayloadResponse,
// and fill it with some sensible data.
$response = $this->get('cl_slack.mock_api_client')->send($payload);

// display the Slack channel ID on which the message was posted
Expand Down

0 comments on commit cca96e1

Please sign in to comment.