Coldbox Testing Model

Use this skill when unit testing ColdBox model objects (services, repositories, entities, or utility classes) in isolation using BaseModelTest, accessing the pre-wired model variable, leveraging the built-in mock helpers (mockLogger, mockLogBox, mockCacheBox, mockWireBox), calling model.init() to initialize the component, mocking injected properties with prepareMock(), or scaffolding model tests with CommandBox.

ColdBox Updated 0 repo stars

File contents

ColdBox/skills commit bd8440f1ad

Frequently asked questions

npx get-skill add coldbox/coldbox-testing-model