X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2FDiceHttpMockHandlerTrait.php;h=50d717c23a7641d9f6af4fcba910eaad03a466b3;hb=e9c6611965848a5905668b8cad6fdfa4c701f609;hp=969b76b5b005f94d181aed174546756b2564226c;hpb=d4a233a1494e51e4a8cb2f6e3c4c96084b496485;p=friendica.git diff --git a/tests/DiceHttpMockHandlerTrait.php b/tests/DiceHttpMockHandlerTrait.php index 969b76b5b0..50d717c23a 100644 --- a/tests/DiceHttpMockHandlerTrait.php +++ b/tests/DiceHttpMockHandlerTrait.php @@ -1,6 +1,6 @@ addRule(IHTTPClient::class, [ - 'instanceOf' => HTTPClientFactory::class, + $newDice = $dice->addRule(ICanSendHttpRequests::class, [ + 'instanceOf' => HttpClient::class, 'call' => [ ['createClient', [$this->httpRequestHandler], Dice::CHAIN_CALL], ],