Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EZP-31325: Added test coverage for sorting by Content & Location IDs #3029

Merged
merged 2 commits into from
Jul 16, 2020

Conversation

alongosz
Copy link
Member

@alongosz alongosz commented May 8, 2020

Question Answer
JIRA issue Test coverage for EZP-31325
Requires ezsystems/ezplatform-solr-search-engine#181
Type bug
Target version 6.13, 7.5, master, ezplatform-kernel:1.0+
Language level PHP 5.6
BC breaks no
Tests pass yes with ezsystems/ezplatform-solr-search-engine#181
Doc needed no

This PR adds dedicated test coverage for sorting by Content IDs and Location IDs of different length (order of magnitude), to check if ordering by integer values works.

It also fixes other Solr fixtures supporting wrong assumption that Solr results should be different. At the same time DX for working with those tests was improved by producing more verbose message (there's a lot of fixtures).

6.13 only: Additionally the PR enforces using Solr Bundle 1.5.x-dev to run tests against as that version of the Bundle is the newest supporting Solr 4.10 and documented as the one to use with eZ Platform 1.13.

Some minor required fixes for the test cases are introduced as well (they're already done on upper branches).

TODO:

@alongosz alongosz force-pushed the ezp-31325-integration-test-coverage branch from 4887ed5 to 0afcc22 Compare May 8, 2020 18:31
@alongosz alongosz changed the title [DO NOT MERGE] EZP-31325: Added test coverage for sorting by Content & Location IDs EZP-31325: Added test coverage for sorting by Content & Location IDs May 29, 2020
@alongosz alongosz force-pushed the ezp-31325-integration-test-coverage branch from 3de285a to f0ae710 Compare May 29, 2020 14:14
@alongosz alongosz requested review from adamwojs, michal-myszka, ViniTou and a team May 29, 2020 14:26
@micszo micszo self-assigned this Jul 13, 2020
@micszo micszo removed their assignment Jul 14, 2020
alongosz added 2 commits July 16, 2020 12:48
 * Added missing test coverage for sorting by Content IDs and Location IDs of different length (order of magnitude) to check if ordering by integer values works

 * Fixed Solr test fixtures after fixing sorting bug

 * Renamed \eZ\Publish\API\Repository\Tests\BaseTest::createContentType
   to createSimpleContentType to avoid collision with
   \eZ\Publish\API\Repository\Tests\FieldType\BaseIntegrationTest::createContentType

 * Improved maintenance of SearchServiceTest::assertQueryFixture
@alongosz alongosz force-pushed the ezp-31325-integration-test-coverage branch from f0ae710 to 552b6b1 Compare July 16, 2020 10:51
@alongosz alongosz merged commit 552b6b1 into ezsystems:6.13 Jul 16, 2020
@alongosz alongosz deleted the ezp-31325-integration-test-coverage branch July 16, 2020 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants