The method signature in core, which likely dates back to 2021, when the parameters were changed in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/697685
protected function doApiRequest( array $params, ?array $session = null,
$appendModule = false, ?Authority $performer = null, $tokenType = null,
$paramPrefix = null
) {In ApiQueryReadingListEntriesTest.php and ApiQueryReadingListsTest.php, there is:
$result = $this->doApiRequest( $this->apiParams, null, $this->user );
This results in the $performer not being set and defaulting to what is set in doApiRequest (which seems to work since tests pass) and appendModule is interpreted as being true.