Skip to content

feat: implement Application layer for User Delete API / Application層のDeleteUserUseCase実装#522

Merged
zigzagdev merged 2 commits into
feat/user-deletefrom
feat/user-delete_application-layer
Jul 4, 2026
Merged

feat: implement Application layer for User Delete API / Application層のDeleteUserUseCase実装#522
zigzagdev merged 2 commits into
feat/user-deletefrom
feat/user-delete_application-layer

Conversation

@zigzagdev

Copy link
Copy Markdown
Owner

Motivation / 目的

Implement the Application layer for the User Delete API as part of #514.

ユーザー削除APIのApplication層(#516)として、DeleteUserUseCase を実装しました。

What I have done / 実施内容

  • DeleteUserUseCase: handle(int $id): void
    • Command オブジェクト不要(削除に必要なのは ID のみ)
    • UserRepositroyInterface::deleteUser() を呼び出し、例外はリポジトリから自動伝播

Test Results / テスト結果

  • test_handle_calls_repository_deleteUser_with_given_id
  • test_handle_propagates_exception_when_user_not_found

Closes #516

@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.12%. Comparing base (97ca0bf) to head (adf71bc).

Additional details and impacted files

Impacted file tree graph

@@                  Coverage Diff                   @@
##             feat/user-delete     #522      +/-   ##
======================================================
+ Coverage               60.01%   60.12%   +0.11%     
- Complexity               1519     1524       +5     
======================================================
  Files                     120      122       +2     
  Lines                    7778     7800      +22     
======================================================
+ Hits                     4668     4690      +22     
  Misses                   3110     3110              
Files with missing lines Coverage Δ
...CommandUseCases/UseCase/User/DeleteUserUseCase.php 100.00% <100.00%> (ø)
...es/Tests/CommandUseCases/DeleteUserUseCaseTest.php 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zigzagdev zigzagdev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@zigzagdev zigzagdev merged commit 6f93265 into feat/user-delete Jul 4, 2026
27 checks passed
@zigzagdev zigzagdev deleted the feat/user-delete_application-layer branch July 4, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: implement Application layer for User Delete API / Application層のDeleteUserUseCase実装

1 participant