'-线下']); $this->assertSame('类目A-线下', ShuyunOpenPlatformOfflinePlatGatewaySuffixApplier::applyDisplayNameSuffix('类目A')); $this->assertSame('类目A-线下', ShuyunOpenPlatformOfflinePlatGatewaySuffixApplier::applyDisplayNameSuffix('类目A-线下')); } public function testApplyExternalIdSuffixUsesConfigAndSkipsDuplicate(): void { config(['shuyun_open_platform.offline_plat_id_suffix' => '-offline']); $this->assertSame('100-offline', ShuyunOpenPlatformOfflinePlatGatewaySuffixApplier::applyExternalIdSuffix('100')); $this->assertSame('100-offline', ShuyunOpenPlatformOfflinePlatGatewaySuffixApplier::applyExternalIdSuffix('100-offline')); } }