#110724Avoid PHPUnit notices from mocks without expectations
Description
Several core tests create PHPUnit mock objects without configuring
expectations.
The imaging tests only need access to a protected helper, while the text
extractor tests only configure return values. PHPUnit therefore reports
four notices because these objects are not being used as mocks.
These notices cause otherwise successful unit and functional suites to
finish with “OK, but there were issues” and make newly introduced notices
harder to identify.
Invoke the protected imaging helper without creating a mock and use test
stubs for the text extractor file objects.
Reviews 1
History 12
-
Gerrit Code Review pushed patch set 1 for main to change 95881 status
NewUnder Review <span data-processor="relativetime" data-value="2026-09-16T16:10:53+00:00" > 09/16/26, 16:10 </span> -
Wouter Wolters commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-09-19T09:15:09+00:00" > 09/19/26, 09:15 </span>
Applied in changeset commit:0ed758881020dde9ee594d9e864deb14a2a39fc7.