Fix wrong getStatus() call in MenuAccessTest

Created on 11 April 2024, 9 months ago
Updated 25 April 2024, 8 months ago

Problem/Motivation

A likely wrong call to getStatus() in MenuAccessTest leads to PHPStan flagging an error in PHPUnit 10.

$this->getStatus() is a legitimate call in PHPUnit 9 (it indicates the status of the test), but that method does not exist in PHPUnit 10, so PHPStan is flagging it.

However, probably the original test developer meant to get the status code of the request, so that call is just wrong to be there.

Proposed resolution

Get the status code of the request.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.3

Component
PHPUnit 

Last updated about 13 hours ago

Created by

🇮🇹Italy mondrake 🇮🇹

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