Questions tagged [tests]

Questions related to checking things: unit tests, performance tests, A/B testing, etc.

Filter by
Sorted by
Tagged with
2
votes
2answers
622 views

Stub out the global craft() object for PHPUnit tests

As best I can tell, the 'mockBuilder' function is exactly what I want, and based on other examples, should work. Am I missing something? How can I stub out the global craft() object? under test: &...