Unable to mock autowired current_user service

Created on 5 June 2024, 3 months ago

Problem/Motivation

I'm trying to write a Kernel test that uses a service that depends on the @current_user service. That part of the service is not relevant to my test, so I want to just mock it. For some reason this doesn't work, and I think it's related to autowiring.

Steps to reproduce

See test in MR.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated 23 minutes ago

Created by

πŸ‡¦πŸ‡ΊAustralia mstrelan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024