Repository navigation
Artisan Facade is not mockable #412
Description:It is not possible to mock the Artisan Facade to test command calls.
Is there a specific reason that this class is final, otherwise we could just remove the final keyword. Steps To Reproduce:
|
Replies: 1 comment
|
No plan for this, you can override the Console Kernel implementations based on https://packages.tools/testbench/the-basic.html#overriding-console-kernel Alternatively, You can also create |
No plan for this, you can override the Console Kernel implementations based on https://packages.tools/testbench/the-basic.html#overriding-console-kernel
Alternatively, You can also create
workbench/app/Console/Kernel.phpand useWithWorkbenchtrait to automatically load your custom console kernel: https://packages.tools/testbench.html#autoloading-using-testbench-yaml