Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Smolevich committed Mar 18, 2023
1 parent 5db345e commit 4be1e2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Feature/Reindexer/ServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public function testAddHeaders() {
],
$response->getDecodedResponseBody(true)
);
$this->dbService->drop('unittests_3');
$this->assertSame(
$headers['User-Agent'],
$response->getRequestHeaders()['User-Agent'][0]
Expand All @@ -147,7 +148,7 @@ public function testAddHeaders() {
public function testSetHeaders() {
$headers = ['User-Agent' => 'reindexer-php-client'];
$this->dbService->setHeaders($headers);
$response = $this->dbService->create('unittests_3');
$response = $this->dbService->create('unittests_4');
$this->assertSame(
[
'success' => true,
Expand All @@ -156,6 +157,7 @@ public function testSetHeaders() {
],
$response->getDecodedResponseBody(true)
);
$this->dbService->drop('unittests_4');
$this->assertSame(
$headers['User-Agent'],
$response->getRequestHeaders()['User-Agent'][0]
Expand Down

0 comments on commit 4be1e2f

Please sign in to comment.