Properly set current_user service in tests

Created on 27 January 2024, over 1 year ago
Updated 26 February 2024, over 1 year ago

Problem/Motivation

Discovered and causing failing tests in πŸ“Œ Implement the new access policy API Needs work .

The current_user service is an account proxy that needs to have a user set using setAccount() and retrieved using getAccount(). Some tests directly assign a user object to the service, leading to crashes once you introduce a service that gets loaded during said tests and relies on the current_user service, using an AccountProxyInterface typehint in its constructor.

Proposed resolution

Properly use setAccount() and getAccount()

πŸ› Bug report
Status

Fixed

Version

10.2 ✨

Component
BaseΒ  β†’

Last updated 1 day ago

Created by

πŸ‡§πŸ‡ͺBelgium kristiaanvandeneynde Antwerp, Belgium

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