Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Kayn3n's avatar
Level 1

Lumen test PHPUnit

Im trying to do a unit test with phpunit in lumen and I need to set up a usecase that uses eloquent's when, but I'm getting an error, where analyzing when it will execute the query in the usecase does not return anything in the model.

0 likes
1 reply
martinbean's avatar

@kayn3n It would help if you showed us the test, and the error you’re getting.

Please or to participate in this conversation.