Dammit, so obvious. Yep that worked! Thanks DrPrez
So obvious someone erased the answer? But not so obvious that the answer is easily discoverable.
thomasedwards said:
Dammit, so obvious. Yep that worked! Thanks DrPrez
Looks like the answer was deleted.....could you post it for us?
You could just ensure that you log out the user before each test case - possibly with $this->flushSession()
as found in Illuminate\Foundation\Testing\Concerns\InteractsWithSession
.
However do each test cases not get executed separately from one another? If so using $this->be(...)
with-in one test case shouldn't result in the user still being logged in on the next test case.
Sign in to participate in this thread!