Skip to content

Commit 8ad30eb

Browse files
committed
Simplify tests: convert it into a simple smoke test
1 parent 6e64745 commit 8ad30eb

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

tests/Maker/MakeResetPasswordTest.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -89,33 +89,6 @@ public function getTestDetails()
8989
]);
9090

9191
$this->assertStringContainsString('Success', $output);
92-
93-
$generatedFiles = [
94-
'src/Controller/ResetPasswordController.php',
95-
'src/Entity/ResetPasswordRequest.php',
96-
'src/Form/ChangePasswordFormType.php',
97-
'src/Form/ResetPasswordRequestFormType.php',
98-
'src/Repository/ResetPasswordRequestRepository.php',
99-
'templates/reset_password/check_email.html.twig',
100-
'templates/reset_password/email.html.twig',
101-
'templates/reset_password/request.html.twig',
102-
'templates/reset_password/reset.html.twig',
103-
];
104-
105-
foreach ($generatedFiles as $file) {
106-
$this->assertFileExists($runner->getPath($file));
107-
}
108-
109-
$configFileContents = file_get_contents($runner->getPath('config/packages/reset_password.yaml'));
110-
111-
// Flex recipe adds comments in reset_password.yaml, check file was replaced by maker
112-
$this->assertStringNotContainsString('#', $configFileContents);
113-
114-
$resetPasswordConfig = $runner->readYaml('config/packages/reset_password.yaml');
115-
116-
$this->assertSame('App\Repository\ResetPasswordRequestRepository', $resetPasswordConfig['symfonycasts_reset_password']['request_password_repository']);
117-
118-
$this->runResetPasswordTest($runner, 'it_generates_with_normal_setup.php');
11992
}),
12093
];
12194

0 commit comments

Comments
 (0)