From fc4920577e46ec20cf48fbb771aca607cedf27fb Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Mon, 23 Oct 2023 14:18:20 +0800 Subject: [PATCH] ExampleTest --- tests/Feature/ExampleTest.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php index 9f10a184..17dae0e6 100644 --- a/tests/Feature/ExampleTest.php +++ b/tests/Feature/ExampleTest.php @@ -2,14 +2,7 @@ namespace Tests\Feature; -use App\Enums\PayWay; -use App\Models\Agent; -use App\Models\User; -use App\Services\DistributeService; -use App\Services\Payment\WxpayService; -use Illuminate\Support\Facades\DB; use Tests\TestCase; -use App\Models\Order; class ExampleTest extends TestCase { @@ -20,16 +13,7 @@ class ExampleTest extends TestCase */ public function test_example() { - $share = 'Y'; - $user = User::find(4); - $agentIds = User::whereIn('id', $user->userInfo->parent_ids)->pluck('agent_id'); - dump($user->userInfo->parent_ids); - $ratio = Agent::whereIn('id', $agentIds)->sum('ratio'); - // 没有提成 - if ($ratio == 0) { - $share = 'N'; - } - dump($share); + $this->assertTrue(true); } }