service = app(OrderPackageReceivedSyncService::class); } public function testReturned() { $this->assertTrue(true); } function tearDown(): void { OrderPackage::destroy($this->order_package_ids); parent::tearDown(); } /** * 测试顺丰接口连通性 * @throws \Exception * @test */ public function getMessage() { $data = ['SF' => ['SF1038651915891', 'SF1038651413847', 'SF1038611050071']]; $result = $this->service->getLogisticRoutes($data); $this->assertCount(3,$result); } }