mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Add Feedback :-)
This commit is contained in:
parent
409d909d0f
commit
f4ea74447e
14 changed files with 80 additions and 44 deletions
|
@ -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],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue