Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 :)