IBX-12530: Merged branch '4.6' into 5.0 - #48
Merged
Merged
Conversation
…ad of a raw-file reimplementation (#43) Previously imported schema.yaml files listed by SchemaFilesProviderInterface via LegacySchemaImporter -- a test-only mechanism that never actually dispatched SchemaBuilderEvent, so any package's own event subscriber (e.g. one deriving its schema from Doctrine ORM entity mappings instead of a schema.yaml file) was never exercised by integration tests at all. Now calls SchemaBuilderInterface::buildSchema() directly -- the same production code ibexa:install's legacy path uses -- and applies the resulting Schema's SQL directly, since the test database is always freshly created. No per-package schema file list needed. Only registered when DoctrineSchemaBundle is actually present (detected in IbexaTestCoreBundle::build(), which runs against the real, shared container -- unlike Extension::load(), which runs against a temporary per-extension copy MergeExtensionConfigurationPass uses to avoid cross-extension leakage, so sibling bundles' extensions never show up there).
…ot just IbexaTestKernel (#44) Let Bootstrapper run against any KernelInterface, not just IbexaTestKernel KernelProvider asserted an IbexaTestKernel subclass and DatabasePreparer/Bootstrapper echoed that in their signatures, yet none of those bodies touch anything beyond KernelInterface: an Application to run console commands through, a container, and shutdown(). Relaxed all of them, so a package testing its own bundle in isolation can bring its own kernel. FixtureKernelMethodProvider already worked this way, duck-typing getFixtures() off a plain KernelInterface. That alone wasn't enough: FixtureHook autowires FixtureImporter (registered by IbexaTestKernel::loadServices()) and both purge hooks reference "ibexa.spi.search" (registered by IbexaCoreBundle), so a minimal kernel failed container compilation just for registering IbexaTestCoreBundle. Added them to RemoveUnsatisfiableHooksPass, which already drops DatabaseSchemaHook the same way -- one mechanism for every built-in hook rather than a special case per hook.
# Conflicts: # src/contracts/Bootstrapper/DatabasePreparer.php # src/contracts/Bootstrapper/DatabasePreparerInterface.php # src/contracts/IbexaTestKernel.php
This was referenced Sep 10, 2026
Steveb-p
added a commit
to ibexa/messenger
that referenced
this pull request
Sep 10, 2026
Points CI at test-core's own 4.6-to-5.0 merge-up, which carries the DatabaseSchemaHook change this merge-up depends on. Must be removed once that lands.
Steveb-p
marked this pull request as ready for review
September 11, 2026 07:43
ViniTou
requested changes
Sep 11, 2026
A PHPUnit run artifact swept into the merge commit by a 'git add -A' during conflict resolution. It is not tracked on 4.6, 5.0 or 6.0 and should never have been added.
ibexa-workflow-automation-1
Bot
requested review from
alongosz,
barw4,
bnowak,
ciastektk,
konradoboza,
mikadamczyk,
tbialcz and
wiewiurdp
and removed request for
a team
September 11, 2026 09:33
konradoboza
approved these changes
Sep 11, 2026
ViniTou
approved these changes
Sep 11, 2026
Steveb-p
added a commit
to ibexa/doctrine-migrations
that referenced
this pull request
Sep 11, 2026
ibexa/test-core#48 has been merged into 5.0, so the pin to its merge-up branch is no longer needed - and that branch has been deleted, which would break composer install.
Steveb-p
added a commit
to ibexa/messenger
that referenced
this pull request
Sep 11, 2026
ibexa/test-core#48 has been merged into 5.0, so the pin to its merge-up branch is no longer needed - and that branch has been deleted, which would break composer install.
Steveb-p
added a commit
to ibexa/user
that referenced
this pull request
Sep 11, 2026
ibexa/test-core#48 has been merged into 5.0, so the pin to its merge-up branch is no longer needed - and that branch has been deleted, which would break composer install.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Caution
This is a merge pull request
Related PRs: