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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bojanz created an issue. See original summary.

bojanz’s picture

bojanz’s picture

Rebased many other submodule tests on this as well.
Lots of boilerplate gone (about 700 lines).

Still need to touch promotions.

bojanz’s picture

Final patch.

Removed CouponsFieldPostUpdateTest cause it wasn't testing anything.

  • bojanz committed 72bdf15 on 8.x-2.x
    Issue #3090107 by bojanz: Introduce an OrderKernelTestBase
    
bojanz’s picture

Status: Needs review » Fixed

Committed.

 68 files changed, 185 insertions(+), 1286 deletions(-)

That's a lot of boilerplate :)

Status: Fixed » Closed (fixed)

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