3

I have installed Lumen 5.2.8. I am trying to unit test the app using phpunit. But when I tried to run the command php artisan make:test UserTest it throws an exception

Command "make:test" is not defined.

How can I solve this issue?

halfer
  • 19,824
  • 17
  • 99
  • 186
Kiren S
  • 3,037
  • 7
  • 41
  • 69
  • 2
    I'm not experienced with Lumen, but my beliefs are that the whole point of Lumen is to have all components disabled to speed performance. Differently from Laravel, you have to install/enable what you'll use so you don't end up with too much unused components. Maybe try researching how to enable this element on Lumen? – Marco Aurélio Deleu Aug 10 '16 at 12:15

1 Answers1

2

There is no make:test command, you need to create the TestCase manually. Follow the documentation here.

Mina Abadir
  • 2,951
  • 2
  • 15
  • 20
  • Documentation says there is...why is this functionality missing for so many years when it's explained in documentation. Strange. – tolga Feb 25 '21 at 18:01