=== NotificationsController Refactoring Test Suite === ✗ Constructor should have 'private array $config' parameter ✓ Constructor should NOT have CsrfService dependency ✓ Should NOT import CsrfService ✗ list() should use $this->config['pagination']['per_page'] for pagination ✓ list() should NOT have hardcoded perPage = 20 ✓ list() should call getActiveNotificationsByUserWithPagination for non-admin users ✗ list() should call getAllNotificationsWithPagination for admin users ✗ Controller methods should use $request['identity']->role for admin check ✓ Controller should NOT use $request['access']['role'] ✗ view() should follow load → check → determine → proceed pattern ✗ edit() should follow load → check → determine → proceed pattern ✗ delete() should follow load → check → determine → proceed pattern ✓ Controller should use $request['csrfToken'] from middleware ✓ NotificationRepository should have findActiveByUserIdPaginated method ✓ NotificationRepository should have countActiveNotificationsByUser method ✓ NotificationService should have getActiveNotificationsByUserWithPagination method === Test Summary === Passed: 9 Failed: 7 Total: 16