public function IndexRouteProviderTest::testGetRoutes in Elasticsearch Connector 8.5
Same name and namespace in other branches
- 8.7 tests/src/Unit/Entity/IndexRouteProviderTest.php \Drupal\Tests\elasticsearch_connector\Unit\Entity\IndexRouteProviderTest::testGetRoutes()
- 8.6 tests/src/Unit/Entity/IndexRouteProviderTest.php \Drupal\Tests\elasticsearch_connector\Unit\Entity\IndexRouteProviderTest::testGetRoutes()
@covers ::getRoutes
File
- tests/
src/ Unit/ Entity/ IndexRouteProviderTest.php, line 19
Class
- IndexRouteProviderTest
- @coversDefaultClass \Drupal\elasticsearch_connector\Entity\IndexRouteProvider
Namespace
Drupal\Tests\elasticsearch_connector\Unit\EntityCode
public function testGetRoutes() {
$cluster_route_provider = new IndexRouteProvider();
$entity_type = $this
->prophesize(EntityTypeInterface::class);
/** @var \Symfony\Component\Routing\RouteCollection $route_collection */
$route_collection = $cluster_route_provider
->getRoutes($entity_type
->reveal());
$this
->assertEquals(2, $route_collection
->count());
}