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.
This commit is contained in:
parent
61ec0cbb8a
commit
02a6a1f883
@ -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'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user