File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/Integration/Infrastructure/Controller Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 55namespace App \Tests \Integration \Infrastructure \Controller ;
66
77use App \Infrastructure \Persistence \Doctrine \Fixtures \UserFixture ;
8+ use App \Infrastructure \Security \Provider \PasswordUserProvider ;
89use Symfony \Bundle \FrameworkBundle \KernelBrowser ;
910use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
1011use Symfony \Component \DomCrawler \Crawler ;
11- use Symfony \Component \Security \Core \User \UserProviderInterface ;
1212
1313abstract class AbstractWebTestCase extends WebTestCase
1414{
1515 protected function login (string $ email = UserFixture::MAIN_ORG_USER_EMAIL ): KernelBrowser
1616 {
1717 $ client = static ::createClient ();
1818
19- /** @var UserProviderInterface */
20- $ userProvider = static ::getContainer ()->get (UserProviderInterface ::class);
19+ /** @var PasswordUserProvider */
20+ $ userProvider = static ::getContainer ()->get (PasswordUserProvider ::class);
2121 $ user = $ userProvider ->loadUserByIdentifier ($ email );
2222
2323 $ client ->loginUser ($ user );
You can’t perform that action at this time.
0 commit comments