Closed vlauciani closed 3 months ago
Hi
Could you provide an example of your test class?
I am trying to use actingAsKeycloakUser() in my Feature test, but when I try to run the test, I get an error:
Call to undefined method Tests\Feature\SeuraUpdateTest::actingAsKeycloakUser()
Check the new 1.6.1 release. Maybe @elnurvl can help with this.
Hi Mr. @tuytoosh
I'm starting to use the new
actingAsKeycloakUser()
method for test. I'm not using a local DataBase with users and I'd like to ask you if it is possibile to "change" the user during the test. For example:The problem is that in the method
test_my_method_with_editor()
uses the userphp-tests-user-writer
because it is already authenticated . I tried to implement alogout()
method:and re-try with:
but the user doesn't change; could you help me?
Thank you.