Closed (fixed)
Project:
Cloud
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
12 Nov 2018 at 06:06 UTC
Updated:
27 Nov 2018 at 23:24 UTC
Jump to comment: Most recent, Most recent file
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 commentedComment #3
xiaohua guan commentedComment #4
xiaohua guan commented@yas
Please review the patch file.
Comment #5
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 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 commentedComment #8
xiaohua guan commentedComment #9
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 commented@xiaohua-guan Looks good! Thanks for the patch.
Comment #13
yas@xiaohua-guan,
@baldwinlouie
Thank you for your efforts.