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

Tests: fix test Domain/QueryCriteriaTest #1222

Merged
merged 1 commit into from
Jan 27, 2021

Conversation

yookoala
Copy link
Member

@yookoala yookoala commented Jan 26, 2021

Description

  • assertContains should be only used on iterables (e.g. array) in newer phpunit. To check if a string contains another string, use assertStringContainsString or assertStringNotContainsString instead (if available).

Motivation and Context

How Has This Been Tested?
CI platform.

* In newer phpunit versions, assertContains should only be used on
  iterables (e.g. array). To check if a string contains another string,
  use assertStringContainsString or assertStringNotContainsString instead.

* make the test forward compatible with phpunit 9
Copy link
Member

@SKuipers SKuipers left a comment

Choose a reason for hiding this comment

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

Aha, good to know for future tests too, thanks!

@SKuipers SKuipers merged commit 4e17948 into GibbonEdu:v22.0.00 Jan 27, 2021
@yookoala yookoala deleted the fix/test-domain-querycriteria branch January 27, 2021 01:27
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.

2 participants