Problem/Motivation
Add the following three test cases for AWS Cloud Admin Setting forms:
Drupal\Tests\aws_cloud\Functional\Config\AwsCloudAdminSettings::testAwsCloudAdminLocationSettings()Drupal\Tests\aws_cloud\Functional\Config\AwsCloudAdminSettings::testAwsCloudAdminNotificationSettings()(this issue)Drupal\Tests\aws_cloud\Functional\Config\AwsCloudAdminSettings::testAwsCloudAdminSettings()
Here is the assertions in each form:
- Display a form and assert if HTTP response
200is returned (Please see also the existing utility methods for testing:CloudAssertionTrait) - Assert if there is no warning or error status messages (Please see also the existing utility methods for testing:
CloudAssertionTrait) - Input some value of the fields and click
Saveand make sure the input values are correctly stored
Specification:
- Implement
createAdminSettingsNotificationsTestFormData()to return an array including the random input data for/admin/config/services/cloud/aws_cloud/notification - Access (HTTP Get)
/admin/config/services/cloud/aws_cloud/notificationand post the random input data.
Issue fork cloud-3232936
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3232936-Add-Test-Cases-Notification
changes, plain diff MR !396
Comments
Comment #3
yutong.li commentedComment #4
yutong.li commentedComment #5
yutong.li commentedComment #6
yutong.li commentedComment #7
yasComment #9
yutong.li commentedComment #10
yutong.li commentedI find it easier to maintain these 3 issues in one branch, so I decided to close
NotificationsandLocations, and only keepSettings.Comment #12
yas