Skip to content

IBX-12606: Migrated the test suites to PHPUnit 11 - #831

Merged
ViniTou merged 20 commits into
6.0from
phpunit-11
Sep 18, 2026
Merged

ViniTou merged 20 commits into
6.0from
phpunit-11

IBX-12606: Used exactly()-based expectations for multi-target evaluat…

48b0f90
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Sep 18, 2026 in 1m 53s

Quality Gate failed

Annotations

Check failure on line 58 in tests/lib/Limitation/LocationLimitationTypeTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkSJpJ1TUpn6z-c72&open=AaCzkSJpJ1TUpn6z-c72&pullRequest=831

Check warning on line 4385 in tests/lib/Repository/Service/Mock/ContentTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This function "providerForTestUpdateContentNonRedundantFieldSetComplex" has 227 lines, which is greater than the 150 lines authorized. Split it into smaller functions.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkRs8J1TUpn6z-c7u&open=AaCzkRs8J1TUpn6z-c7u&pullRequest=831

Check warning on line 4073 in tests/lib/Repository/Service/Mock/ContentTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This function "providerForTestUpdateContentNonRedundantFieldSet4" has 234 lines, which is greater than the 150 lines authorized. Split it into smaller functions.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkRs8J1TUpn6z-c7t&open=AaCzkRs8J1TUpn6z-c7t&pullRequest=831

Check warning on line 3574 in tests/lib/Repository/Service/Mock/ContentTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This function "providerForTestUpdateContentNonRedundantFieldSet2" has 162 lines, which is greater than the 150 lines authorized. Split it into smaller functions.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkRs8J1TUpn6z-c7r&open=AaCzkRs8J1TUpn6z-c7r&pullRequest=831

Check failure on line 240 in tests/integration/Core/Repository/RepositoryTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkQ7IJ1TUpn6z-c7M&open=AaCzkQ7IJ1TUpn6z-c7M&pullRequest=831

Check failure on line 85 in tests/lib/Limitation/ObjectStateLimitationTypeTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkSL1J1TUpn6z-c76&open=AaCzkSL1J1TUpn6z-c76&pullRequest=831

Check failure on line 33 in tests/lib/Limitation/BlockingLimitationTypeTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkSMZJ1TUpn6z-c77&open=AaCzkSMZJ1TUpn6z-c77&pullRequest=831

Check warning on line 123 in tests/lib/MVC/Symfony/Matcher/ContentBased/Identifier/ContentTypeTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Update this method so that its implementation is not identical to "matchLocationProvider" on line 51.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkSFPJ1TUpn6z-c70&open=AaCzkSFPJ1TUpn6z-c70&pullRequest=831

Check warning on line 124 in tests/lib/MVC/Symfony/Matcher/ContentBased/Id/ContentTypeGroupTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Update this method so that its implementation is not identical to "matchLocationProvider" on line 54.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkSD6J1TUpn6z-c7y&open=AaCzkSD6J1TUpn6z-c7y&pullRequest=831

Check warning on line 1678 in tests/integration/Core/Repository/SearchServiceTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This function "getSortedContentSearches" has 157 lines, which is greater than the 150 lines authorized. Split it into smaller functions.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkREgJ1TUpn6z-c7c&open=AaCzkREgJ1TUpn6z-c7c&pullRequest=831

Check failure on line 68 in tests/lib/Persistence/Legacy/Content/FieldValue/Converter/UrlTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkRLoJ1TUpn6z-c7f&open=AaCzkRLoJ1TUpn6z-c7f&pullRequest=831

Check warning on line 83 in tests/lib/MVC/Symfony/FieldType/RelationList/ParameterProviderTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Update this method so that its implementation is not identical to "testNotFoundGetViewParameters" on line 65.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkSHxJ1TUpn6z-c71&open=AaCzkSHxJ1TUpn6z-c71&pullRequest=831

Check failure on line 63 in tests/lib/Limitation/SubtreeLimitationTypeTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkSOIJ1TUpn6z-c7-&open=AaCzkSOIJ1TUpn6z-c7-&pullRequest=831

Check failure on line 268 in tests/integration/Core/Repository/RepositoryTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkQ7IJ1TUpn6z-c7N&open=AaCzkQ7IJ1TUpn6z-c7N&pullRequest=831

Check warning on line 323 in tests/lib/Repository/Service/Mock/UrlAliasTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This function "providerForTestListAutogeneratedLocationAliasesPath" has 395 lines, which is greater than the 150 lines authorized. Split it into smaller functions.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkRqkJ1TUpn6z-c7o&open=AaCzkRqkJ1TUpn6z-c7o&pullRequest=831

Check failure on line 69 in tests/lib/Persistence/Legacy/Content/FieldValue/Converter/KeywordTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkRMJJ1TUpn6z-c7i&open=AaCzkRMJJ1TUpn6z-c7i&pullRequest=831

Check warning on line 4192 in tests/lib/Persistence/Legacy/Content/UrlAlias/UrlAliasHandlerTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This function "testLocationSwappedMultipleLanguagesDifferentLanguagesSimple" has 208 lines, which is greater than the 150 lines authorized. Split it into smaller functions.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkRQRJ1TUpn6z-c7j&open=AaCzkRQRJ1TUpn6z-c7j&pullRequest=831

Check failure on line 933 in tests/lib/Repository/Service/Mock/PermissionTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkRveJ1TUpn6z-c7w&open=AaCzkRveJ1TUpn6z-c7w&pullRequest=831

Check failure on line 118 in tests/integration/Core/Repository/TrashServiceAuthorizationTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkQytJ1TUpn6z-c7L&open=AaCzkQytJ1TUpn6z-c7L&pullRequest=831

Check warning on line 4570 in tests/lib/Persistence/Legacy/Content/UrlAlias/UrlAliasHandlerTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This function "testLocationSwappedMultipleLanguagesWithCompositeHistory" has 277 lines, which is greater than the 150 lines authorized. Split it into smaller functions.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkRQRJ1TUpn6z-c7k&open=AaCzkRQRJ1TUpn6z-c7k&pullRequest=831

Check warning on line 27 in tests/integration/Core/Repository/Regression/PureNegativeQueryTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This function "providerForTestMatchAll" has 190 lines, which is greater than the 150 lines authorized. Split it into smaller functions.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkQdOJ1TUpn6z-c7I&open=AaCzkQdOJ1TUpn6z-c7I&pullRequest=831

Check failure on line 691 in tests/integration/Core/Repository/FieldType/BaseIntegrationTestCase.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkQqJJ1TUpn6z-c7K&open=AaCzkQqJJ1TUpn6z-c7K&pullRequest=831

Check failure on line 72 in tests/lib/Limitation/ParentContentTypeLimitationTypeTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkSO8J1TUpn6z-c7_&open=AaCzkSO8J1TUpn6z-c7_&pullRequest=831

Check warning on line 2865 in tests/integration/Core/Repository/ContentTypeServiceTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Update this method so that its implementation is not identical to "testLoadContentTypeByIdentifierReturnsCorrectInstance" on line 2807.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkQ74J1TUpn6z-c7O&open=AaCzkQ74J1TUpn6z-c7O&pullRequest=831

Check warning on line 2009 in tests/integration/Core/Repository/SearchServiceTest.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This function "providerForTestMultilingualFieldSort" has 219 lines, which is greater than the 150 lines authorized. Split it into smaller functions.

See more on https://sonarcloud.io/project/issues?id=ibexa_core&issues=AaCzkREgJ1TUpn6z-c7d&open=AaCzkREgJ1TUpn6z-c7d&pullRequest=831