Upd. Integrations. Nextend Social Login: set altsession mode if Google auth provided and set up. - #841
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the Nextend Social Login integration to require alternative session handling when Google OAuth is configured, and adds unit tests around the integration helper behavior.
Changes:
- Add
NextendSocialLogin::isOAuthProviderEnabled()to detect whether an OAuth provider is configured (via saved option). - Extend
State::isAltSessionsRequired()to require alt sessions when Nextend Social Login is active and Google OAuth is set up. - Add PHPUnit coverage for
NextendSocialLogindata extraction, blocking behavior, and provider-enabled detection.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/Antispam/Integrations/TestNextendSocialLogin.php | Adds unit tests for the Nextend Social Login integration behavior and option-based provider detection. |
| lib/Cleantalk/ApbctWP/State.php | Adds an alt-sessions trigger for Nextend Social Login when Google OAuth is configured. |
| lib/Cleantalk/Antispam/Integrations/NextendSocialLogin.php | Adds provider-enabled detection helper and makes getDataForChecking() explicitly return null when unsupported. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…e auth provided and set up.
159c2ba to
71a6986
Compare
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (66.66%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## dev #841 +/- ##
============================================
+ Coverage 27.58% 27.63% +0.05%
- Complexity 6052 6059 +7
============================================
Files 282 282
Lines 25180 25189 +9
============================================
+ Hits 6946 6962 +16
+ Misses 18234 18227 -7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
https://app.doboard.com/1/task/53787