From a9233ba62fc05fa224eb32dcf8a1db51310f4c4e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 20 Mar 2021 10:10:45 +1100 Subject: [PATCH] Tests for number validation across entities --- tests/Feature/PaymentTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/Feature/PaymentTest.php b/tests/Feature/PaymentTest.php index 74e89dbdc5..11a1387256 100644 --- a/tests/Feature/PaymentTest.php +++ b/tests/Feature/PaymentTest.php @@ -104,6 +104,15 @@ class PaymentTest extends TestCase $response->assertStatus(200); + + $response = $this->withHeaders([ + 'X-API-SECRET' => config('ninja.api_secret'), + 'X-API-TOKEN' => $this->token, + ])->put('/api/v1/payments/'.$this->encodePrimaryKey($Payment->id), $Payment->toArray()); + + $response->assertStatus(200); + + $response = $this->withHeaders([ 'X-API-SECRET' => config('ninja.api_secret'), 'X-API-TOKEN' => $this->token,