Mock

A stand-in that records how it was called.

What is Mock?

A mock is a stand-in object that records how it was called, so a test can check that code, for example, sent an email.

Level: Journeyman · More Unit Testing terms at this level

Updated