# 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](https://www.ask-codey.com/glossary/subjects/unit-testing/journeyman)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/mock
