Closed (fixed)
Project:
Scheduler
Version:
8.x-1.x-dev
Component:
Testing
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2020 at 08:45 UTC
Updated:
11 Sep 2020 at 17:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gena.io commentedComment #3
gena.io commentedComment #4
jonathan1055 commentedThanks gena.io for the patch.
I can see that in your example the new version is definitely clearer and easier to read/understand. Is there a specific Drupal best practise statement about this? or did you just decide that it would be an improvement
Comment #5
jonathan1055 commentedJust tried this
which shows that the two you have identified are the only assertions which have 'empty' within the arguments.
Unlike some of the replcement assertions, these do accept a message parameter. I've changed the text to say what should be the case, as the message is only shown when there is a failure. This makes it clearer to understand what has happened when viewing the output.
Re-rolled the patch due to #3084931-9: Remove calls to deprecated method assertEqual() and replace with assertEquals(). I have also used
assertEqualsfor the length, instead ofassertTrue(strLen() ...)Comment #7
jonathan1055 commentedThanks @gena.io for starting this off.
Committed and fixed.
Comment #8
jonathan1055 commentedUnassigning.