Comments

Thalles created an issue. See original summary.

thalles’s picture

Status: Needs work » Needs review

Follow the patch with refactor code

thalles’s picture

Title: Coding standards on SMTPConfigForm » Dependency injection on SMTPConfigForm
Issue summary: View changes
StatusFileSize
new4.5 KB

Floow the patch!

Status: Needs review » Needs work
thalles’s picture

Follow the patch!

thalles’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work
thalles’s picture

Status: Needs work » Needs review
StatusFileSize
new7.94 KB

Status: Needs review » Needs work

The last submitted patch, 8: smtp-Dependency_injection_on_SMTPConfigForm-3007711-8-D8.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

vivek panicker’s picture

Title: Dependency injection on SMTPConfigForm » Use Dependency injection in classes
Assigned: Unassigned » vivek panicker
Issue summary: View changes
Issue tags: +DIACWMay2020
vivek panicker’s picture

Path #8 not included as I can see that Dependency Injection has already been done for the Config Form.

vivek panicker’s picture

Assigned: vivek panicker » Unassigned
Status: Needs work » Needs review

Status: Needs review » Needs work
thalles’s picture

Hello @Vivek Panicker!
You need to inject this services by test class SMTPMailSystemTest

thalles’s picture

Assigned: Unassigned » thalles
thalles’s picture

Assigned: thalles » Unassigned
Status: Needs work » Needs review
StatusFileSize
new8.28 KB
new2.49 KB
vivek panicker’s picture

Great! Thank you @thalles.
The test cases too seem to pass!

thalles’s picture

@Vivek Panicker, can you make review for us?

vivek panicker’s picture

Hi thalles,
Applied patch from inside smtp folder using git apply smtp-Use_Dependency_injection_in_classes-3007711-16-D8.patch.
Tested on local on MailHog server.
Generated Test email from SMTP config page. Also generated reset password mail. Mails delivered fine and no errors reported on DBLog page.

thalles’s picture

Thankful @Vivek Panicker!

thalles’s picture

Status: Needs review » Reviewed & tested by the community
japerry’s picture

Status: Reviewed & tested by the community » Postponed

Will probably get closed because that work is already going on here: #3135595: SmtpConnect() error but email sends successfully

thalles’s picture

But looks me different things

japerry’s picture

Status: Postponed » Fixed

You're right! so many connection classes ;) I'm not currently touching this one.

Fixed.

  • japerry committed 52b3849 on 8.x-1.x authored by thalles
    Issue #3007711 by thalles, Vivek Panicker: Use Dependency injection in...
thalles’s picture

Thanks @all!

vivek panicker’s picture

Happy to contribute to such a useful module! :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.