Problem/Motivation

As title

Proposed resolution

Remove redundant assertion messages at the same time.

Example:

-    $this->assertTrue(isset($ids['entity_test.entity_test.field_test_import']));
+    $this->assertArrayHasKey('entity_test.entity_test.field_test_import', $ids);

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

gena.io created an issue. See original summary.

gena.io’s picture

gena.io’s picture

gena.io’s picture

gena.io’s picture

Status: Active » Needs review
phenaproxima’s picture

Status: Needs review » Needs work

So I see that this patch did a lot of clean-up, but I think that I'd prefer to commit the bare minimum of changes here, just so we don't accidentally lose coverage. Would you mind rerolling this patch to fix the assertions, but keep the code repetition (even though it's ugly)? We can open another issue to clean that up, and I'd be quite happy to commit that.

I apologize for this inconvenient request; I'd merely like to make sure something useful doesn't accidentally get lost in the flow.

ankithashetty’s picture

Status: Needs work » Needs review
StatusFileSize
new13.15 KB
new9.15 KB

Updated the patch in #4 addressing the changes suggested in #6. Attached an interdiff as well. Kindly review...

Thank you!

  • phenaproxima committed 510a6fa on 8.x-5.x
    Issue #3155652 by gena.io, ankithashetty: Replace assertions involving...
phenaproxima’s picture

Status: Needs review » Fixed

This looks great. Thank you both! Committed and pushed to 8.x-5.x.

Status: Fixed » Closed (fixed)

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