]> git.mxchange.org Git - friendica.git/blobdiff - tests/DiceHttpMockHandlerTrait.php
Reports: The reporting contact id is added
[friendica.git] / tests / DiceHttpMockHandlerTrait.php
index 7f77d7e4fea1a54b859d9986dacf7b3f6309fc95..50d717c23a7641d9f6af4fcba910eaad03a466b3 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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],