You are here

protected function ClusterManagerTest::setUp in Elasticsearch Connector 8.5

Same name and namespace in other branches
  1. 8.7 tests/src/Unit/ClusterManagerTest.php \Drupal\Tests\elasticsearch_connector\Unit\ClusterManagerTest::setUp()
  2. 8.6 tests/src/Unit/ClusterManagerTest.php \Drupal\Tests\elasticsearch_connector\Unit\ClusterManagerTest::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/ClusterManagerTest.php, line 29

Class

ClusterManagerTest
@coversDefaultClass \Drupal\elasticsearch_connector\ClusterManager

Namespace

Drupal\Tests\elasticsearch_connector\Unit

Code

protected function setUp() {
  parent::setUp();
  $state = $this
    ->prophesize(StateInterface::class);
  $entity_type_manager = $this
    ->prophesize(EntityTypeManagerInterface::class);
  $this->clusterManager = new ClusterManager($state
    ->reveal(), $entity_type_manager
    ->reveal());
}