mirror of
https://gitee.com/ShopeX/ECShopX
synced 2026-08-05 19:55:51 +08:00
4.7.0
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\ShuyunOpenPlatform;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
final class OperatorStoreMemberReadinessServiceSourceTest extends TestCase
|
||||
{
|
||||
public function testSkipsRegisterWhenEitherOpenPlatformMarkerPresent(): void
|
||||
{
|
||||
$path = dirname(__DIR__, 2).'/src/MembersBundle/Services/OperatorStoreMemberReadinessService.php';
|
||||
$src = (string) file_get_contents($path);
|
||||
|
||||
$this->assertStringContainsString('ShuyunOpenPlatformMemberSyncState::isRegisteredWithOpenPlatform', $src);
|
||||
$this->assertStringContainsString("return ['synced' => false, 'skipped' => true];", $src);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user