Skip to content

IBX-12358: Bootstrapped integration tests through Bootstrapper - #2082

Merged
Steveb-p merged 1 commit into
4.6from
feature/bootstrapper-adoption
Sep 10, 2026
Merged

Steveb-p merged 1 commit into
4.6from
feature/bootstrapper-adoption

Conversation

@Steveb-p

@Steveb-p Steveb-p commented Sep 10, 2026

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12358

Related PRs:

Description:

tests/integration/bootstrap.php hand-rolls the pre-IBX-12358 flow — boot the kernel, drop and
create the database, loop getSchemaFiles() through LegacySchemaImporter, loop
getFixtures(). Bootstrapper does all of it.

This needed a dependency bump first. This package was on ibexa/test-core 0.1.x-dev, which
predates Bootstrapper — the class simply is not in that line. ibexa/test-rest had to move with
it, because it requires ~0.1.x-dev of test-core, so bumping test-core alone does not resolve:

ibexa/test-rest 0.1.x-dev requires ibexa/test-core ~0.1.x-dev -> found ibexa/test-core[0.1.x-dev]
but it conflicts with your root composer.json require (~4.6.x-dev).

Both go to ~4.6.x-dev. Despite the version jump this is a renumbering of the same line rather
than five majors of drift, and nothing in this package needed adjusting for it — see QA.

Note this bootstrap never ran doctrine:schema:update, and Bootstrapper enables it by default, so OPTION_SCHEMA_UPDATE => false is passed to keep the two equivalent. AdminUiIbexaTestKernel registers IbexaTestCoreBundle, which Bootstrapper requires.

For QA:

Same checkout throughout, so the numbers are directly comparable:

Step composer test-integration
baseline (test-core 0.1.x-dev, hand-rolled bootstrap) 35 tests / 191 assertions
after the dependency bump only 35 tests / 191 assertions
after adopting Bootstrapper 35 tests / 191 assertions

Also green: composer phpstan, composer check-cs.

tests/integration/bootstrap.php hand-rolled the pre-IBX-12358 flow: boot the kernel, drop and
create the database, loop getSchemaFiles() through LegacySchemaImporter, loop getFixtures().

Adopting Bootstrapper needed ibexa/test-core off 0.1.x-dev first, since that line predates it.
ibexa/test-rest had to move with it — it requires ~0.1.x-dev of test-core, so bumping one alone
does not resolve. Both go to ~4.6.x-dev.

Bootstrapper runs doctrine:schema:update by default and this bootstrap never did, so
OPTION_SCHEMA_UPDATE is switched off to keep the two equivalent. AdminUiIbexaTestKernel registers
IbexaTestCoreBundle, which Bootstrapper requires.
@sonarqubecloud

Copy link
Copy Markdown

@Steveb-p
Steveb-p marked this pull request as ready for review September 10, 2026 10:43
@Steveb-p Steveb-p added Ready for review Tests update QA label indicating tests need to be updated labels Sep 10, 2026
@Steveb-p
Steveb-p requested a review from a team September 10, 2026 10:56
@Steveb-p
Steveb-p merged commit 16f84a0 into 4.6 Sep 10, 2026
40 checks passed
@Steveb-p
Steveb-p deleted the feature/bootstrapper-adoption branch September 10, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for review Tests update QA label indicating tests need to be updated

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants