[TESTS] Add coverage ignore to TemplateController and ResetPassword (as it requires sending emails)
This commit is contained in:
parent
518995d155
commit
8139a21eb9
@ -11,6 +11,12 @@ use Symfony\Component\Validator\Constraints\NotBlank;
|
||||
use SymfonyCasts\Bundle\ResetPassword\Controller\ResetPasswordControllerTrait;
|
||||
use SymfonyCasts\Bundle\ResetPassword\Exception\ResetPasswordExceptionInterface;
|
||||
|
||||
/**
|
||||
* Send password reset emails to users
|
||||
* TODO: As we don't have email services setup yet, this won't be tested right now
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class ResetPassword extends Controller
|
||||
{
|
||||
use ResetPasswordControllerTrait;
|
||||
@ -78,7 +84,7 @@ class ResetPassword extends Controller
|
||||
|
||||
// The token is valid; allow the user to change their password.
|
||||
$form = From::create([
|
||||
FormFields::password(),
|
||||
FormFields::repeated_password(),
|
||||
['password_reset', SubmitType::class, ['label' => _m('Change password')]],
|
||||
]);
|
||||
|
||||
|
@ -22,6 +22,11 @@ namespace App\Controller;
|
||||
use App\Core\Controller;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/**
|
||||
* Can be used to implement static routes that simply require rendering a Twig template
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class TemplateController extends Controller
|
||||
{
|
||||
public function handle(Request $req)
|
||||
|
Loading…
Reference in New Issue
Block a user