Skip to content

test(mcp): replace assertArrayHasKeyAndValue() with available methods#7827

Open
alexislefebvre wants to merge 3 commits intoapi-platform:4.3from
alexislefebvre:test-mcp-replace-assertArrayHasKeyAndValue-with-assertArraySubset
Open

test(mcp): replace assertArrayHasKeyAndValue() with available methods#7827
alexislefebvre wants to merge 3 commits intoapi-platform:4.3from
alexislefebvre:test-mcp-replace-assertArrayHasKeyAndValue-with-assertArraySubset

Conversation

@alexislefebvre
Copy link
Contributor

@alexislefebvre alexislefebvre commented Mar 6, 2026

Q A
Branch? main
Tickets .
License MIT
Doc PR .

In a previous PR I added assertArrayHasKeyAndValue and it wasn’t a great idea. I removed it and used methods from ApiTestAssertionsTrait instead. When it’s possible it use PHP arrays when we want to check JSON arrays.

See: #7724


Update: actually these tests were updated in soyuka@fd8a889#diff-e5117b4bc60a6d15618af0e87afb39afc8338c96b23847e9f4ab73f36e7f594e so this PR may not be needed.

soyuka and others added 2 commits March 5, 2026 11:20
…rm#7817)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@alexislefebvre alexislefebvre changed the title test(mcp): replace assertArrayHasKeyAndValue with assertArraySubset test(mcp): replace assertArrayHasKeyAndValue() with available methods Mar 6, 2026
@alexislefebvre alexislefebvre force-pushed the test-mcp-replace-assertArrayHasKeyAndValue-with-assertArraySubset branch from 2073b31 to 4dee9bd Compare March 6, 2026 18:57
@soyuka soyuka changed the base branch from main to 4.3 March 7, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants