Negative CRUD Unit Testing in Laravel 5

Let us start on the CREATE test.

PHPUnit 6.5.7 by Sebastian Bergmann and contributors..                                                                   1 / 1 (100%)Time: 993 ms, Memory: 26.00MBOK (1 test, 1 assertion)
PHPUnit 6.5.7 by Sebastian Bergmann and contributors..                                                                   1 / 1 (100%)Time: 936 ms, Memory: 26.00MBOK (1 test, 1 assertion)
PHPUnit 6.5.7 by Sebastian Bergmann and contributors..                                                                   1 / 1 (100%)Time: 969 ms, Memory: 26.00MBOK (1 test, 1 assertion)
➜  git: phpunit --filter=CarouselUnitTest::it_error_when_deleting_a_non_existing_carousel
PHPUnit 6.5.7 by Sebastian Bergmann and contributors.
. 1 / 1 (100%)Time: 938 ms, Memory: 26.00MBOK (1 test, 1 assertion)

--

--

Senior Fullstack Engineer, React Native developer and HL7 Health Informatics professional

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jeff Simons Decena

Senior Fullstack Engineer, React Native developer and HL7 Health Informatics professional