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

Add @requires group to the test that depends on group module. #298

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

finnlewis
Copy link
Member

No description provided.

@finnlewis
Copy link
Member Author

Tests pass on this, OK to merge and tag a release @andybroomfield ?

Copy link
Contributor

@Adnan-cds Adnan-cds left a comment

Choose a reason for hiding this comment

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

Great solution :) Thanks.

@finnlewis finnlewis merged commit e6dab0b into 1.x Oct 12, 2023
8 checks passed
@finnlewis finnlewis deleted the feature/297-skip-tests-where-dependency-not-present branch October 12, 2023 14:07
@finnlewis
Copy link
Member Author

Thanks @Adnan-cds !

Just for the record, we were trying to supress the failing tests from here: https://github.com/localgovdrupal/localgov_project/actions/runs/6383368525/job/17380283376?pr=131

PHP Fatal error:  Uncaught Error: Class "Drupal\Tests\group\Kernel\GroupKernelTestBase" not found in /var/www/html/web/modules/contrib/localgov_alert_banner/modules/group_alert_banner/tests/src/Kernel/GroupAlertBannerTest.php

But it didn't seem to work. Drupal was still including the file and trying to extend the base class without group present.

Requiring drupal/group in the test seems to have done the job.
localgovdrupal/localgov_project@d0a9575

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.

None yet

3 participants