Fix wrong getStatus() call in MenuAccessTest

Created on 11 April 2024, about 2 months ago
Updated 25 April 2024, about 1 month 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 10 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.69.0 2024