I noticed that some changes could be made to the tests:

  • All test classes should be in separate files.
  • There shouldn't be any methods with name starting with "test" that aren't intended to be executed by the testbot.
  • The WebformTestCase class should be renamed to a 'helper' class as it doesn't run any tests itself.

Comments

DamienMcKenna created an issue. See original summary.

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new47.63 KB

This resolves the issues mentioned and will make it slightly easier to expand upon.

danchadwick’s picture

Status: Needs review » Needs work

Patch seems to be missing the new files, no? I see tons of deleted code not moved elsewhere. Unless another webform maintainer comes out of the woodwork, I'm not sure I see this going anywhere.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new60.8 KB

Oh darnit. Does this cover it?

damienmckenna’s picture

(I hadn't reverted my local copy of the webform repo since I wrote the original above)

damienmckenna’s picture

StatusFileSize
new12.74 KB

This version excludes the submission.file.test file from #2675170: Drupal 7.43 makes file upload component fail for anonymous user.

liam morland’s picture

Status: Needs review » Needs work
Related issues: +#2822962: Adjust tests to match OO best practices

This needs a reroll because of #2822962: Adjust tests to match OO best practices. Some of this ticket is done in that one.

liam morland’s picture

Assigned: Unassigned » liam morland
Status: Needs work » Fixed
damienmckenna’s picture

Awesome!

Status: Fixed » Closed (fixed)

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