Issue Bug Closed

#100183Mock calls in DatabaseUserPermissionCheckTest do not match the called method's types

Oliver Klee 03/16/23, 09:40 updated 07/09/24, 12:46

Description

In \TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\DatabaseUserPermissionCheckTest, two tests call BackendUserAuthentication::check with a string and and int, while the method’s contract states that it should be called with two strings. One of them must be wrong. :-)

The two tests are:

- addDataThrowsExceptionIfCommandIsEditTableIsPagesAndUserHasNoDoktypePermissions
- addDataAddsUserPermissionsOnPageIfTableIsPagesAndUserHasPagePermissions

Reviews 1