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:
|
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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.php
and useWithWorkbench
trait to automatically load your custom console kernel: https://packages.tools/testbench.html#autoloading-using-testbench-yaml