diff --git a/tests/Feature/Company/CompanyApiTest.php b/tests/Feature/Company/CompanyApiTest.php index 64e9c62..bc436bf 100644 --- a/tests/Feature/Company/CompanyApiTest.php +++ b/tests/Feature/Company/CompanyApiTest.php @@ -133,8 +133,8 @@ public function test_can_create_company_request(): void 'message' => '새 회사 추가 요청합니다.', ]); - // 201 (생성 성공) 또는 200 (서비스 미구현 시 500) - $this->assertContains($response->status(), [200, 201, 500]); + // 201 (생성 성공) 또는 200, 400 (검증 실패), 서비스 미구현 시 500 + $this->assertContains($response->status(), [200, 201, 400, 500]); } public function test_can_get_my_requests(): void diff --git a/tests/Feature/Payment/PaymentApiTest.php b/tests/Feature/Payment/PaymentApiTest.php index 49ceb7e..3a083de 100644 --- a/tests/Feature/Payment/PaymentApiTest.php +++ b/tests/Feature/Payment/PaymentApiTest.php @@ -183,7 +183,7 @@ public function test_can_show_payment(): void 'amount' => 10000, 'payment_method' => Payment::METHOD_CARD, 'status' => Payment::STATUS_PENDING, - 'paid_at' => null, + 'paid_at' => now(), 'created_by' => $this->user->id, ]); @@ -206,7 +206,7 @@ public function test_can_complete_payment(): void 'amount' => 10000, 'payment_method' => Payment::METHOD_CARD, 'status' => Payment::STATUS_PENDING, - 'paid_at' => null, + 'paid_at' => now(), 'created_by' => $this->user->id, ]); @@ -225,7 +225,7 @@ public function test_can_cancel_payment(): void 'amount' => 10000, 'payment_method' => Payment::METHOD_CARD, 'status' => Payment::STATUS_PENDING, - 'paid_at' => null, + 'paid_at' => now(), 'created_by' => $this->user->id, ]); @@ -299,7 +299,7 @@ public function test_cannot_refund_pending_payment(): void 'amount' => 10000, 'payment_method' => Payment::METHOD_CARD, 'status' => Payment::STATUS_PENDING, - 'paid_at' => null, + 'paid_at' => now(), 'created_by' => $this->user->id, ]);