ensureAdobeAnalyticsMocksForTest function

void ensureAdobeAnalyticsMocksForTest()

Installs no-op Adobe Experience Platform method channel handlers so AdobeAnalyticsImpl can initialize under flutter test without native SDKs.

Implementation

void ensureAdobeAnalyticsMocksForTest() {
  if (_adobeMocksInstalled) return;

  const channelNames = <String>[
    'flutter_aepcore',
    'flutter_aepedge',
    'flutter_aepidentity',
    'flutter_aeplifecycle',
    'flutter_aepsignal',
    'flutter_aepedgeidentity',
    'flutter_aepedgeconsent',
    'flutter_aepassurance',
    'flutter_aepuserprofile',
  ];

  for (final name in channelNames) {
    _installAdobeChannelMock(name);
  }

  _adobeMocksInstalled = true;
}