refactor(2meet-data-optimizer): retire the SSO AddOn recommendation
- missing_integration_addons() no longer asks for the SSO AddOn when 2meet-hub-core / 2meet-spoke-sso are active: they register their own tables and the `sso` values belong in usermeta (benchmark: no measurable gain from the flat table for by-user-id access). - `sso` joins the deprecated AddOns; for hub / spoke / sso the notice says they go without replacement and to run `wp tmdo bridge-restore-native user --group=sso --retire` first. - Verify: core unit 658 / integration 479 green, phpcs clean - PR: PR-043
This commit is contained in:
@@ -83,19 +83,9 @@ class MissingIntegrationAddonsTest extends TestCase {
|
||||
* @runInSeparateProcess
|
||||
* @preserveGlobalState disabled
|
||||
*/
|
||||
public function test_hub_or_spoke_without_the_sso_addon_is_reported(): void {
|
||||
eval( 'final class TMSO_Plugin {}' );
|
||||
|
||||
$this->assertSame( array( '2meet Hub / Spoke SSO' => '2meet-data-optimizer-sso-addon' ), TMDO_Compatibility::missing_integration_addons() );
|
||||
}
|
||||
|
||||
/**
|
||||
* @runInSeparateProcess
|
||||
* @preserveGlobalState disabled
|
||||
*/
|
||||
public function test_hub_with_the_sso_addon_is_fine(): void {
|
||||
public function test_hub_and_spoke_need_no_addon(): void {
|
||||
eval( 'final class TMHC_Plugin {}' );
|
||||
eval( 'final class TMDO_SSO_Integration {}' );
|
||||
eval( 'final class TMSO_Plugin {}' );
|
||||
|
||||
$this->assertSame( array(), TMDO_Compatibility::missing_integration_addons() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user