Skip to content

Commit

Permalink
fixed ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zds-s committed Oct 8, 2024
1 parent cb0d69b commit c9fe16e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Feature/Admin/CrudControllerCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public function caseCreate(string $uri, string $roleCode, array $fillable, strin
}catch (\Exception $e){
$entity = $model::query()->where(Arr::only($fillable, $required))->first();
}
if (empty($entity)){
$entity = $model::query()->where(Arr::only($fillable, $required))->first();
}
if (empty($entity)) {
$this->fail('Create failed');
}
Expand Down

0 comments on commit c9fe16e

Please sign in to comment.