The method expects() does not exist on BringYourOwnIdeas\Mainte...l\SupportedAddonsLoader. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
26
$this->loader->/** @scrutinizer ignore-call */
27
expects($this->once())
Loading history...
27
->method('doRequest')
28
->with('addons.silverstripe.org/api/supported-addons', function () {
29
// no-op
30
});
31
32
$this->loader->getAddonNames();
33
}
34
35
public function testCallbackReturnsAddonsFromBody()