From c9fe16e018b0a620dbe32d20935163c5e6ee59f5 Mon Sep 17 00:00:00 2001 From: zds <49744633+zds-s@users.noreply.github.com> Date: Tue, 8 Oct 2024 20:04:33 +0800 Subject: [PATCH] fixed ci --- tests/Feature/Admin/CrudControllerCase.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Feature/Admin/CrudControllerCase.php b/tests/Feature/Admin/CrudControllerCase.php index be18312c..7a9a045e 100644 --- a/tests/Feature/Admin/CrudControllerCase.php +++ b/tests/Feature/Admin/CrudControllerCase.php @@ -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'); }