flag-drupal8
flag-drupal8 copied to clipboard
Add test support for each link type
The current test, FlagSimpleTest, really only covers the default "reload" link type. While AJAX is largely similar, special test cases for the Confirm Form and now the Field Entry link types must be added as the workflow is different for each.
Ideally, these would be added as separate test classes, rather than as a part of FlagSimpleTest. The confirm form test would be relatively straightforward, but the field entry test would also (naturally) test fields on flaggings.
Confirm form and Field entry now have tests, but not the AJAX link type.