Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Order has over 20 kernel tests, and no common test base, which means dependencies and setup code is repeated for each one.
This is very painful for #3080229: Update commerce_order to use commerce_number_pattern where I'd need to add the same dependency to every test.
So, let's introduce a base class first.
Comment | File | Size | Author |
---|---|---|---|
#4 | 3090107-4-kernel-test-base.patch | 126.49 KB | bojanz |
#3 | 3090107-3-kernel-test-base.patch | 85.09 KB | bojanz |
#2 | 3090107-2-kernel-test-base.patch | 35.83 KB | bojanz |
Comments
Comment #2
bojanz CreditAttribution: bojanz at Centarro commentedComment #3
bojanz CreditAttribution: bojanz at Centarro commentedRebased many other submodule tests on this as well.
Lots of boilerplate gone (about 700 lines).
Still need to touch promotions.
Comment #4
bojanz CreditAttribution: bojanz at Centarro commentedFinal patch.
Removed CouponsFieldPostUpdateTest cause it wasn't testing anything.
Comment #6
bojanz CreditAttribution: bojanz at Centarro commentedCommitted.
That's a lot of boilerplate :)