I created an acceptance test that visits an index page, and checks that it displays the number of results expected.
In order to get the number of results I should expect, I'm getting a "ListService" from the Symfony container after I log in.
In the constructor of the ListService, the symfony TokenService is called to get the currently logged in user.
However, when I run the test, I'm getting an error from the ListService that indicates that it's not able to get the Token from tokenStorage that it depends on to get the logged in user. However, in an earlier part of my test, the user has logged in successfully.
Any tips on how to get a test like this working where a service needs to get the logged in user from a service?