Closed (fixed)
Project:
Drupal core
Version:
9.2.x-dev
Component:
hal.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2021 at 09:56 UTC
Updated:
24 Jun 2021 at 12:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
quietone commentedSomething like this seems much easier to understand.
Comment #3
longwave@coversDefaultClass is only for class annotations, use @covers for method annotations.
Comment #4
quietone commented@longwave, thanks.
I also didn't change the extends from the old base class to UnitTestCase. I then decided to change the file name as well to remove Unit' since this is in the Drupal\Tests\hal\Unit namespace. Because of the name change the interdiff was useless so I have omitted it and the diff wasn't any better. So just a new patch.
Comment #6
bhumikavarshney commentedHi @quietone,
The above patch works for me.
3 files are deleted and 1 new file is created.
Thanks!!
RTBC+1
Comment #7
longwaveThis makes sense to me, it is much simpler to understand these tests now.
Comment #9
quietone commentedI notice what is probably a random failure on the 9.3.x patch. I've decided to re-upload the patch so testing is against 9.3.x.
Comment #12
catchCommitted/pushed to 9.3.x and cherry-picked to 9.2.x. Messed up the commit credit in the commit, but adding @longwave in the issue.