Skip to content

test: replace the deprecated bundle ApiTestCase in functional tests - #8557

Merged
soyuka merged 1 commit into
api-platform:5.0from
mislavjakopovic:test/replace-the-deprecated-bundle-apitestcase-in-functional-tests
Sep 22, 2026
Merged

soyuka merged 1 commit into
api-platform:5.0from
mislavjakopovic:test/replace-the-deprecated-bundle-apitestcase-in-functional-tests

Conversation

@mislavjakopovic

@mislavjakopovic mislavjakopovic commented Sep 21, 2026

Copy link
Copy Markdown
Contributor
Q A
Branch? 5.0
Tickets none
PRs Preparation for #8537
License MIT
Doc PR n/a

Until now we had six functional tests added after the api-platform/test extraction (#7887) that still extended ApiPlatform\Symfony\Bundle\Test\ApiTestCase, the shim that triggers a deprecation and extends ApiPlatform\Test\ApiTestCase.

The deprecation fires when the file is loaded, outside of any test, so PHPUnit 12 never reports it, but PHPUnit 13.2+ does (sebastianbergmann/phpunit#6579) and the phpunit-no-deprecations job fails once the constraint allows PHPUnit 13.

This pull request is part of several fixes needed to enable PHPUnit 13 support in PR #8537.

@soyuka
soyuka merged commit 640d7ee into api-platform:5.0 Sep 22, 2026
116 of 117 checks passed
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