diff --git a/t/Feature/Resource/FinancialEntryTest.php b/t/Feature/Resource/FinancialEntryTest.php index 4f474ab..6f55769 100644 --- a/t/Feature/Resource/FinancialEntryTest.php +++ b/t/Feature/Resource/FinancialEntryTest.php @@ -568,8 +568,7 @@ public function testInvalidCreate() $modifier = $modifier_fabricator->create(); $financial_entry_fabricator = new Fabricator(FinancialEntryModel::class); $financial_entry_fabricator->setOverrides([ - "modifier_id" => $modifier->id, - "remarks" => "@ characters not allowed here" + "modifier_id" => $modifier->id + 1 ]); $financial_entry = $financial_entry_fabricator->make(); @@ -780,14 +779,13 @@ public function testInvalidUpdate() $modifier = $modifier_fabricator->create(); $financial_entry_fabricator = new Fabricator(FinancialEntryModel::class); $financial_entry_fabricator->setOverrides([ - "modifier_id" => $modifier->id, - "remarks" => "@ characters not allowed here" + "modifier_id" => $modifier->id + 1 ]); $financial_entry = $financial_entry_fabricator->create(); $new_details = $financial_entry_fabricator->make(); - $this->expectException(InvalidRequest::class); - $this->expectExceptionCode(400); + $this->expectException(MissingResource::class); + $this->expectExceptionCode(404); $result = $authenticated_info ->getRequest() ->withBodyFormat("json")