Support the ongoing development of Laravel.io →

fogine

Joined 8 Jan 2015

Statistics

Threads 1
Replies 1
Solutions 0
Articles 0

Unit testing - mock eloquent's query scope method

I would like to mock model's scope method, is it possible? Here is the scenario: Order model: public...

0 Likes
3 Replies
replied 9 years ago

Unit testing - mock eloquent's query scope method

andrewmclagan said: Mocking eloquent models is difficult and leaves your tests very brittle. If you...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.