#Different behaviour in tests

2 messages · Page 1 of 1 (latest)

sick sparrow
#

Using the DatabaseMigrations trait, I'm encountering different behaviour when launching these tests:

  • php artisan test tests/Services/
  • php artisan test tests/Services/ItemServiceTest.php

Can someone explain me why, please? Both are not using the same arguments (storing data with Model::firstOrCreate()).

spice crow
#

I'm sorry, but there's like zero information here.

  • what is "different behavior"?
  • what do these tests do?
  • not sure if these arguments are supposed to be used that way