InteractionService->searchJourneys() input contract is:

searchJourneys(array $params, $json = NULL)

This should be changed to:

searchJourneys(array $params - NULL, $json = NULL)

because it is possible to search for journeys without filters, and it should not be up to the calling code to define an empty array.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

john_a created an issue. See original summary.

john_a’s picture

Patch created, please review

john_a’s picture

Status: Active » Needs review
john_a’s picture

Patch was incorrect - it applied $params to URL tokens and URL params.

Patch recreated and added unit test for no params.

Please review. Expected results:

$ ../vendor/bin/phpunit --filter=MarketingCloudInteractionTest
PHPUnit 4.8.36 by Sebastian Bergmann and contributors.

Testing
.

Time: 3.18 minutes, Memory: 216.00MB

OK (1 test, 89 assertions)
john_a’s picture

Status: Needs review » Reviewed & tested by the community

patch applies cleanly, unit tests pass:

/core$ ../vendor/bin/phpunit --filter=MarketingCloudInteractionTest
PHPUnit 4.8.36 by Sebastian Bergmann and contributors.

Testing
.

Time: 3.11 minutes, Memory: 216.00MB

OK (1 test, 91 assertions)

HTML output was generated
john_a’s picture

Status: Reviewed & tested by the community » Fixed
john_a’s picture

Status: Fixed » Closed (fixed)