]> git.mxchange.org Git - friendica.git/blobdiff - tests/DiceHttpMockHandlerTrait.php
Issue 11310: Show pinned posts when not logged in
[friendica.git] / tests / DiceHttpMockHandlerTrait.php
index 969b76b5b005f94d181aed174546756b2564226c..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
  *
@@ -23,8 +23,8 @@ namespace Friendica\Test;
 
 use Dice\Dice;
 use Friendica\DI;
-use Friendica\Factory\HTTPClientFactory;
-use Friendica\Network\IHTTPClient;
+use Friendica\Network\HTTPClient\Factory\HttpClient;
+use Friendica\Network\HTTPClient\Capability\ICanSendHttpRequests;
 use GuzzleHttp\HandlerStack;
 
 /**
@@ -49,8 +49,8 @@ trait DiceHttpMockHandlerTrait
 
                $dice = DI::getDice();
                // addRule() clones the current instance and returns a new one, so no concurrency problems :-)
-               $newDice = $dice->addRule(IHTTPClient::class, [
-                       'instanceOf' => HTTPClientFactory::class,
+               $newDice = $dice->addRule(ICanSendHttpRequests::class, [
+                       'instanceOf' => HttpClient::class,
                        'call'       => [
                                ['createClient', [$this->httpRequestHandler], Dice::CHAIN_CALL],
                        ],