From 02a6a1f8833e387f6979903e13653538c41fb7c8 Mon Sep 17 00:00:00 2001 From: mahdahar <89adham@gmail.com> Date: Wed, 8 Apr 2026 04:18:16 +0700 Subject: [PATCH] test: align account patch status expectation with update semantics PATCH requests in this API now follow update semantics and return 200 instead of 201. Update the feature test assertion so it validates the standardized behavior and avoids false failures. --- tests/feature/MasterDataPatchTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/feature/MasterDataPatchTest.php b/tests/feature/MasterDataPatchTest.php index 167ffed..0dd1bef 100644 --- a/tests/feature/MasterDataPatchTest.php +++ b/tests/feature/MasterDataPatchTest.php @@ -162,7 +162,7 @@ class MasterDataPatchTest extends CIUnitTestCase ->withBodyFormat('json') ->call('patch', "api/organization/account/{$id}", ['AccountName' => 'Updated account']); - $patch->assertStatus(201); + $patch->assertStatus(200); $show = $this->withHeaders($this->authHeaders())->call('get', "api/organization/account/{$id}"); $show->assertStatus(200); $showData = json_decode($show->getJSON(), true)['data'];