diff --git a/tests/Feature/Reindexer/ServiceTest.php b/tests/Feature/Reindexer/ServiceTest.php index 32cf24a..4be8f40 100644 --- a/tests/Feature/Reindexer/ServiceTest.php +++ b/tests/Feature/Reindexer/ServiceTest.php @@ -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] @@ -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, @@ -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]