Taelkir wrote a reply+100 XP
4d ago
Testing that the log record has been written.
Also important to make sure the Log::shouldReceive()->once() comes before the code that triggers the log in the test, so it's ready and waiting for the actual Log call.
Can't be applied retroactively.
Taelkir liked a comment+100 XP
4mos ago
Defensive Laravel: Ep 3, Guard Clauses And Avoiding Invalid State
Guard clause simply refers to an early return right ?