Problem/Motivation

See #2800873-131: Add XML GET REST test coverage, work around XML encoder quirks.2 and #2800873-152: Add XML GET REST test coverage, work around XML encoder quirks.

Proposed resolution

Add test coverage to EntityResourceTestBase::testPatch().

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#4 2905686-4.patch2.74 KBwim leers

Comments

Wim Leers created an issue. See original summary.

wim leers’s picture

Title: [PP-1] Expand EntityResourceTestBase to test PATCHing and POSTing multi-value fields » [PP-1] Expand EntityResourceTestBase to test PATCHing and POSTing multi-value fields: both adding and removing items
Issue summary: View changes
wim leers’s picture

Title: [PP-1] Expand EntityResourceTestBase to test PATCHing and POSTing multi-value fields: both adding and removing items » Expand EntityResourceTestBase to test PATCHing and POSTing multi-value fields: both adding and removing items
Status: Postponed » Active
wim leers’s picture

Title: Expand EntityResourceTestBase to test PATCHing and POSTing multi-value fields: both adding and removing items » Expand EntityResourceTestBase to test PATCHing multi-value fields: both adding and removing items
Status: Active » Needs review
StatusFileSize
new2.74 KB

I think just PATCH test coverage is enough.

Here's that test coverage.

wim leers’s picture

Issue summary: View changes
dawehner’s picture

Status: Needs review » Reviewed & tested by the community

This looks perfect, thank you!

For a while I was thinking, could we make this file more readable overall by introducing readable helper functions like: patchMultiValueFields. This would be of course out of scope here, but such big functions don't make it obvious without reading them from top to the bottom of all the possible cases it covers.

wim leers’s picture

I agree — now that the test coverage is approaching completion, we can and should look into simplifying it!

  • catch committed 67207f7 on 8.5.x
    Issue #2905686 by Wim Leers: Expand EntityResourceTestBase to test...
wim leers’s picture

Status: Reviewed & tested by the community » Fixed

Looks like catch committed this one, yay! :)

Status: Fixed » Closed (fixed)

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