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 bc0fdd6 commit 1c9a93b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:


- name: Setup Node
uses: ./.github/actions/setup-node/
uses: ./.github/actions/setup-node

# - name: Check Git version
# run: git --version
Expand Down
5 changes: 3 additions & 2 deletions tests/Feature/Admin/CrudControllerCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ public function caseCreate(string $uri, string $roleCode, array $fillable, strin
$this->assertTrue($enforce->deletePermissionForUser($this->user->username, $roleCode));
$result = $this->post($uri, $fillable, ['Authorization' => 'Bearer ' . $token]);
$this->assertSame($result['code'], ResultCode::FORBIDDEN->value);
$entity = $model::query()->where($fillable)->first();
if ($required) {
try {
$entity = $model::query()->where($fillable)->first();
}catch (\Exception $e){
$entity = $model::query()->where(Arr::only($fillable, $required))->first();
}
if (empty($entity)) {
Expand Down

0 comments on commit 1c9a93b

Please sign in to comment.