A
A
Andrey2017-06-27 18:11:19
PHPUnit
Andrey, 2017-06-27 18:11:19

How to test artisan commands in laravel?

Good day. I have been working with Laravel for more than a year (I’m working), I know quite well many aspects of both the framework itself and PHP, but until recently I was not familiar with unit testing in php, and in particular in laravel.
I started learning and trying. Everything seems to be clear, but the question arose, is it possible to somehow test self-written artisan commands?
Thanks in advance for your replies :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Melikhov, 2017-06-27
@andreybold

See make:user test example
Command: https://github.com/melihovv/grammar_review_tool/bl...
Tests: https://github.com/melihovv/grammar_review_tool/bl...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question