Skip to content

Commit

Permalink
Update swan-lake/development-tutorials/test-document-the-code/test-ba…
Browse files Browse the repository at this point in the history
…llerina-code/mocking.md


Address review

Co-authored-by: Asma Jabir <azinneera@gmail.com>
  • Loading branch information
Thevakumar-Luheerathan and azinneera committed Apr 19, 2024
1 parent 7e03313 commit 69b45f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function testGetRandomJoke() {

Instead of creating a test double, you may also choose to create a default mock object and stub the methods to return a specific value or to do nothing.

>**Note:** Usage of this approach is applicable all the methods other than resources.
This approach applies to all the methods other than resources.

>**Note:** It is important to ensure that all methods of the object being tested are properly stubbed.
> If any method is called within the implementation that hasn't been stubbed, the test framework will generate an
Expand Down

0 comments on commit 69b45f7

Please sign in to comment.