Skip to content

IBX-13221: Added dama/doctrine-test-bundle to isolate integration tests - #176

Open
vidarl wants to merge 1 commit into
4.6from
IBX-13221_dama_doctrine_test_bundle
Open

vidarl wants to merge 1 commit into
4.6from
IBX-13221_dama_doctrine_test_bundle

Conversation

@vidarl

@vidarl vidarl commented Nov 18, 2026 •

Copy link
Copy Markdown

Caution

When mergin up to 5.0:

  • phpunit.xml conflicts — 4.6 still has the PHPUnit 9 <filter><whitelist> block that 5.0 replaced with <coverage>. Keep 5.0's version and take only the <extensions> block from this PR.
  • Bump dama/doctrine-test-bundle to ^8.2, as in ibexa/core-persistence and ibexa/admin-ui on 5.0 and 6.0. ^6.7 is correct here but caps at symfony/framework-bundle ^6.0, so it cannot install on 5.0.
  • Drop UserRegisterControllerTest::tearDown(), the manual invitation cleanup added in IBX-12340: Pass the required struct option when registering from invitation #140 — the rollback makes it redundant. That test does not exist on 4.6.
🎫 Issue IBX-13221

Description:

The integration tests share one database and nothing rolls back what they write,

This adds dama/doctrine-test-bundle and rewrites the four affected tests to insert the rows they assert on.

This PR is a follow-up to the review discussion in #140.

For QA:

Documentation:

@sonarqubecloud

Copy link
Copy Markdown

@tbialcz tbialcz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nit: the same createInvitation() call repeats 4 times, a small private helper would help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants