realtebo's avatar

Laravel 8 package testing - How to test interactiomn with another package?

Our company has developed an auth package. It has migrations, and auth logic inside.

I am developing a new package that must interact with auth package. For example, My package's controllers must create records using user id from current logged user.

I am curios about how to proceed.

Must I manually run in 'some way' the migrations from auth package .. or must I simply mock the logged user with a fake id to be used in test?

0 likes
0 replies

Please or to participate in this conversation.