Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Add test cases for cloud_server_template module
Comment | File | Size | Author |
---|---|---|---|
#7 | 3012975_20181113.patch | 57.76 KB | Xiaohua Guan |
Comments
Comment #2
Xiaohua Guan CreditAttribution: Xiaohua Guan commentedComment #3
Xiaohua Guan CreditAttribution: Xiaohua Guan commentedComment #4
Xiaohua Guan CreditAttribution: Xiaohua Guan commented@yas
Please review the patch file.
Comment #5
baldwinlouie CreditAttribution: baldwinlouie commented@xioahua-guan, Thank you for the patch. I reviewed this and have the following feedback. When you refactored drupal_set_message, I think it is better to use dependency injection to inject the messenger object into the Form class rather than call the global messenger service using \Drupal::messenger().
Please take a look at AwsCloudContentForm.php's create method on how to set up the messenger object. Then you can look at KeyPairImportForm.php on how to use the messenger object.
What do you think?
Comment #6
Xiaohua Guan CreditAttribution: Xiaohua Guan commented@baldwinlouie
Thanks for your code review and comment.
> What do you think?
I agree with your way. I will do some modification.
Comment #7
Xiaohua Guan CreditAttribution: Xiaohua Guan commentedComment #8
Xiaohua Guan CreditAttribution: Xiaohua Guan commentedComment #9
Xiaohua Guan CreditAttribution: Xiaohua Guan commented@baldwinlouie
Hi, I attached a new patch file, 3012975_20181113.patch. Please take a look. Thanks.
Comment #10
yas@xiaohua-guan Thank you for your patch. It looks good to me.
@baldwinlouie, how do you think?
Comment #11
baldwinlouie CreditAttribution: baldwinlouie commented@xiaohua-guan Looks good! Thanks for the patch.
Comment #13
yas@xiaohua-guan,
@baldwinlouie
Thank you for your efforts.