diff --git a/src/Commands/Reload.php b/src/Commands/Reload.php index 4016fc4a..9b42b482 100644 --- a/src/Commands/Reload.php +++ b/src/Commands/Reload.php @@ -4,16 +4,14 @@ use Drupal\Core\Logger\LoggerChannelFactoryInterface; use Drupal\Core\Logger\LoggerChannelTrait; -use Drupal\search_api_pantheon\Plugin\SolrConnector\PantheonSolrConnector; use Drupal\search_api_pantheon\Services\PantheonGuzzle; use Drupal\search_api_pantheon\Services\SchemaPoster; use Drush\Commands\DrushCommands; -use Symfony\Component\Finder\Finder; /** * Drush Search Api Pantheon Schema Commands. */ -class Schema extends DrushCommands { +class Reload extends DrushCommands { use LoggerChannelTrait; /** @@ -51,13 +49,12 @@ public function __construct( } /** - * Search_api_pantheon:reloadSchema + * Search_api_pantheon:reloadSchema. * * @usage search-api-pantheon:reloadSchema * Reload the latest schema * * @command search-api-pantheon:reloadSchema - * */ public function reloadSchema() { try { @@ -67,4 +64,5 @@ public function reloadSchema() { $this->logger->error((string) $e); } } + } diff --git a/tests/Unit/EndpointServiceTest.php b/tests/Unit/EndpointServiceTest.php index c711bd46..d37cf123 100644 --- a/tests/Unit/EndpointServiceTest.php +++ b/tests/Unit/EndpointServiceTest.php @@ -3,7 +3,6 @@ namespace Drupal\search_api_pantheon\tests\Unit; use Drupal\search_api_pantheon\Services\Endpoint; -use Drupal\Core\Entity\EntityTypeManagerInterface; use PHPUnit\Framework\TestCase; /**