Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayn93 committed Jul 19, 2024
1 parent e5ffdc8 commit 4996327
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions spec/Storefront/Controller/ProxyControllerSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use PhpSpec\Wrapper\Collaborator;
use PHPUnit\Framework\Assert;
use Prophecy\Argument;
use Psr\Http\Client\ClientExceptionInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
Expand All @@ -36,14 +35,11 @@ public function let(
$serverUrl = 'https://example.fact-finder.de/fact-finder';
$config->getServerUrl()->willReturn($serverUrl);
$config->getVersion()->willReturn('ng');
$config->getCredentials()->willReturn([
'username',
'pass',
]);
$config->getApiKey()->willReturn('api-key-123');
$this->beConstructedWith($config);
$clientBuilder->build()->willReturn($client);
$clientBuilder->withServerUrl(Argument::any())->willReturn($clientBuilder);
$clientBuilder->withCredentials(Argument::any())->willReturn($clientBuilder);
$clientBuilder->withApiKey(Argument::any())->willReturn($clientBuilder);
$clientBuilder->withVersion(Argument::any())->willReturn($clientBuilder);
$this->client = $client;
$this->clientBuilder = $clientBuilder;
Expand Down

0 comments on commit 4996327

Please sign in to comment.