X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2FDiceHttpMockHandlerTrait.php;h=3381a3219f8a5520cce55a30f548a7cc381436f1;hb=ab77f48b8b4966dc96c97215b4781d9fb32e61a7;hp=7f77d7e4fea1a54b859d9986dacf7b3f6309fc95;hpb=409d909d0f52395eae4bebf7960c368efed3865f;p=friendica.git diff --git a/tests/DiceHttpMockHandlerTrait.php b/tests/DiceHttpMockHandlerTrait.php index 7f77d7e4fe..3381a3219f 100644 --- a/tests/DiceHttpMockHandlerTrait.php +++ b/tests/DiceHttpMockHandlerTrait.php @@ -24,7 +24,7 @@ namespace Friendica\Test; use Dice\Dice; use Friendica\DI; use Friendica\Network\HTTPClient\Factory\HttpClient; -use Friendica\Network\HTTPClient\Capability\ICanRequestPerHttp; +use Friendica\Network\HTTPClient\Capability\ICanSendHttpRequests; use GuzzleHttp\HandlerStack; /** @@ -49,7 +49,7 @@ trait DiceHttpMockHandlerTrait $dice = DI::getDice(); // addRule() clones the current instance and returns a new one, so no concurrency problems :-) - $newDice = $dice->addRule(ICanRequestPerHttp::class, [ + $newDice = $dice->addRule(ICanSendHttpRequests::class, [ 'instanceOf' => HttpClient::class, 'call' => [ ['createClient', [$this->httpRequestHandler], Dice::CHAIN_CALL],