true], false ); $this->addToAssertionCount(1); } /** * 店铺发货:云仓开关关闭时不允许快买。 */ public function testStoreShipmentRequiresPlatformStoreBuyWhenOff(): void { $this->expectException(ResourceException::class); $this->expectExceptionMessage('该店铺未开启云仓可购买'); DistributorService::assertShopadminFastBuyAllowedForItem( ['is_total_store' => false], false ); } /** * 店铺发货:云仓开关开启时允许快买。 */ public function testStoreShipmentAllowsWhenPlatformStoreBuyOn(): void { DistributorService::assertShopadminFastBuyAllowedForItem( ['is_total_store' => false], true ); $this->addToAssertionCount(1); } }