protected function ClusterManagerTest::setUp in Elasticsearch Connector 8.6
Same name and namespace in other branches
- 8.7 tests/src/Unit/ClusterManagerTest.php \Drupal\Tests\elasticsearch_connector\Unit\ClusterManagerTest::setUp()
- 8.5 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\UnitCode
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());
}