/**
  * Tests the getListBuilder() method.
  *
  * @covers ::getListBuilder
  */
 public function testGetListBuilder()
 {
     $class = $this->getTestHandlerClass();
     $entity = $this->getMock('Drupal\\Core\\Entity\\EntityTypeInterface');
     $entity->expects($this->once())->method('getHandlerClass')->with('list_builder')->will($this->returnValue($class));
     $this->setUpEntityManager(array('test_entity_type' => $entity));
     $this->assertInstanceOf($class, $this->entityManager->getListBuilder('test_entity_type'));
 }
 /**
  * Tests the getListBuilder() method.
  *
  * @covers ::getListBuilder
  */
 public function testGetListBuilder()
 {
     $class = $this->getTestHandlerClass();
     $entity = $this->prophesize(EntityTypeInterface::class);
     $entity->getHandlerClass('list_builder')->willReturn($class);
     $this->setUpEntityManager(array('test_entity_type' => $entity));
     $this->assertInstanceOf($class, $this->entityManager->getListBuilder('test_entity_type'));
 }