Skip to content

Commit

Permalink
fixed plugin registration in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Jan 3, 2024
1 parent 179ffd9 commit 13b4ab9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Plugin/NoResponseRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ class NoResponseRequestTest extends TestCase

public function setUp(): void
{
$this->plugin = new NoResponseRequest();

$this->client = TestClientFactory::createWithCurlAdapter();
$this->plugin = $this->client->getPlugin('noresponserequest');
$this->query = $this->client->createSuggester(['buildAll' => true]);
}

Expand Down Expand Up @@ -109,7 +108,8 @@ public function testExecuteRequest()
public function testPluginIntegration()
{
$client = TestClientFactory::createWithCurlAdapter();
$client->registerPlugin('testplugin', $this->plugin);
$plugin = new NoResponseRequest();
$client->registerPlugin('testplugin', $plugin);

$query = $client->createSelect();
$request = $client->createRequest($query);
Expand Down

0 comments on commit 13b4ab9

Please sign in to comment.