X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2FDiceHttpMockHandlerTrait.php;h=50d717c23a7641d9f6af4fcba910eaad03a466b3;hb=e8420dcb7155af7fb8bd29fb63c79367125dd551;hp=969b76b5b005f94d181aed174546756b2564226c;hpb=cf0b7b709b1a9a5d64b261817fd02b9812d7fd04;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], ],