@@ -396,7 +396,7 @@ function (string $output, string $directory) {
396396 ),
397397 ];
398398
399- yield 'auth_login_form ' => [
399+ yield 'auth_login_form_user_entity ' => [
400400 MakerTestDetails::createTest (
401401 $ this ->getMakerInstance (MakeAuthenticator::class),
402402 [
@@ -410,7 +410,62 @@ function (string $output, string $directory) {
410410 )
411411 ->addExtraDependencies ('doctrine ' )
412412 ->addExtraDependencies ('security ' )
413- ->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeAuthenticatorLoginForm ' ),
413+ ->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeAuthenticatorLoginFormUserEntity ' )
414+ ->assert (
415+ function (string $ output , string $ directory ) {
416+ $ this ->assertContains ('Success ' , $ output );
417+
418+ $ fs = new Filesystem ();
419+ $ this ->assertTrue ($ fs ->exists (sprintf ('%s/src/Controller/SecurityController.php ' , $ directory )));
420+ $ this ->assertTrue ($ fs ->exists (sprintf ('%s/templates/security/login.html.twig ' , $ directory )));
421+ $ this ->assertTrue ($ fs ->exists (sprintf ('%s/src/Security/AppCustomAuthenticator.php ' , $ directory )));
422+ }
423+ ),
424+ ];
425+
426+ yield 'auth_login_form_user_not_entity ' => [
427+ MakerTestDetails::createTest (
428+ $ this ->getMakerInstance (MakeAuthenticator::class),
429+ [
430+ // authenticator type => login-form
431+ 1 ,
432+ // class name
433+ 'AppCustomAuthenticator ' ,
434+ // controller name
435+ 'SecurityController ' ,
436+ // user class
437+ 'App\Security\User '
438+ ]
439+ )
440+ ->addExtraDependencies ('security ' )
441+ ->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeAuthenticatorLoginFormUserNotEntity ' )
442+ ->assert (
443+ function (string $ output ) {
444+ $ this ->assertContains ('Success ' , $ output );
445+ }
446+ ),
447+ ];
448+
449+ yield 'auth_login_form_existing_controller ' => [
450+ MakerTestDetails::createTest (
451+ $ this ->getMakerInstance (MakeAuthenticator::class),
452+ [
453+ // authenticator type => login-form
454+ 1 ,
455+ // class name
456+ 'AppCustomAuthenticator ' ,
457+ // controller name
458+ 'SecurityController '
459+ ]
460+ )
461+ ->addExtraDependencies ('doctrine ' )
462+ ->addExtraDependencies ('security ' )
463+ ->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeAuthenticatorLoginFormExistingController ' )
464+ ->assert (
465+ function (string $ output ) {
466+ $ this ->assertContains ('Success ' , $ output );
467+ }
468+ ),
414469 ];
415470
416471 yield 'user_security_entity_with_password ' => [MakerTestDetails::createTest (
0 commit comments