Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-27916

[Integration tests] Make SetupFactory autoloaded in root packages

    XMLWordPrintable

Details

    Description

      Solr Bundle composer.json had been aligned with best practices recently, by moving Test namespaces to autoload-dev property.

      This caused unforeseen side effect - running integration tests from a root-package (e.g. ezpublish-kernel), where Solr Bundle is a dependency, is no longer possible, because SetupFactory became part of autoload-dev.
      According to the Composer doc autoload-dev is loaded only for root-package, not dependencies.

      Steps to reproduce:
      1. Start Solr with multicore setup.
      2. Clone ezpublish-kernel repository.
      3. Set env variable COMPOSER_ROOT_VERSION=dev-master (to avoid any dependency constraints issues).
      4. Perform composer install.
      5. Perform composer req ezsystems/ezplatform-solr-search-engine:^1.3.0@dev
      6. Run phpunit -c phpunit-integration-legacy-solr.xml

      Attachments

        Activity

          People

            Unassigned Unassigned
            andrew.longosz@ibexa.co Andrew Longosz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h