Skip to content

IBX-11766: Replaced phpunit assertions with webmozart equivalents#753

Merged
konradoboza merged 4 commits into
5.0from
IBX-11766-replace-phpunit-assertions-with-webmozart-library
May 22, 2026
Merged

IBX-11766: Replaced phpunit assertions with webmozart equivalents#753
konradoboza merged 4 commits into
5.0from
IBX-11766-replace-phpunit-assertions-with-webmozart-library

Conversation

@bnowak
Copy link
Copy Markdown
Contributor

@bnowak bnowak commented May 19, 2026

🎫 Issue IBX-11766

Related PRs:

ibexa/behat#184

Description:

Installed webmozart/assert library as require-dev dependency. It's still a bit "hidden" dependency (because behat package use assertions from /src directory), but at least it's defined in this specific library. Previously, phpunit was installed by indirect dependency from ibexa/behat package.

Replaced phpunit assertions with these from webmozart library.

For QA:

Documentation:

@bnowak bnowak force-pushed the IBX-11766-replace-phpunit-assertions-with-webmozart-library branch from a3a6701 to 52a38fa Compare May 19, 2026 13:21
bnowak and others added 3 commits May 21, 2026 11:44
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@bnowak bnowak force-pushed the IBX-11766-replace-phpunit-assertions-with-webmozart-library branch from 52a38fa to d7b89a6 Compare May 21, 2026 09:44
@bnowak bnowak marked this pull request as ready for review May 21, 2026 10:27
$expectedSiteaccessName,
$siteaccessList = $this->getConfigResolver()->getParameter('siteaccess.default_siteaccess')
Assertion::eq(
$siteaccessList = $this->getConfigResolver()->getParameter('siteaccess.default_siteaccess'),
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.

comment from sonarcloud seems valid and can be applied here.

Remove this unused "$siteaccessList" local variable.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

👍 fixed - removed

…text\ConsoleContext::thereIsADefaultSiteaccess
@sonarqubecloud
Copy link
Copy Markdown

@konradoboza konradoboza merged commit a1b3089 into 5.0 May 22, 2026
22 checks passed
@konradoboza konradoboza deleted the IBX-11766-replace-phpunit-assertions-with-webmozart-library branch May 22, 2026 09:03
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.

6 participants