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

Ensure ValidationEmailRuleTest skips tests requiring the intl extension when unavailable #54918

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

alikhosravidev
Copy link
Contributor

@alikhosravidev alikhosravidev commented Mar 6, 2025

This PR adds the #[RequiresPhpExtension('intl')] attribute to the testValidateMxRecord and testCombiningRules methods in the ValidationEmailRuleTest class.

These methods rely on the intl PHP extension because the Email class validateMxRecord method depends on it. The attribute ensures the tests are only executed if the required extension is available, preventing potential test failures in environments without the extension.

@crynobone
Copy link
Member

Can you send this to 11.x since it is still under bug releases.

@alikhosravidev alikhosravidev force-pushed the test/validation-rules branch from 512b2d2 to bb31829 Compare March 6, 2025 10:56
@alikhosravidev alikhosravidev changed the base branch from 12.x to 11.x March 6, 2025 10:57
@alikhosravidev
Copy link
Contributor Author

Can you send this to 11.x since it is still under bug releases.

I've updated the PR to target the 11.x branch as requested.

@@ -143,6 +143,7 @@ public function testRfcCompliantStrict()
);
}

#[RequiresPhpExtension('intl')]
Copy link
Member

Choose a reason for hiding this comment

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

Need to import the class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

…ord` and `testCombiningRules` due to intl extension dependency.
@alikhosravidev alikhosravidev force-pushed the test/validation-rules branch from bb31829 to 8f4b54d Compare March 6, 2025 11:27
@taylorotwell taylorotwell merged commit 3ac6ae1 into laravel:11.x Mar 6, 2025
44 checks passed
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.

3 participants