public function EntityManagerTest::testGetStorage in Drupal 8
@covers ::getStorage
@expectedDeprecation EntityManagerInterface::getStorage() is deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeManager::getStorage() instead. See https://www.drupal.org/node/2549139
File
- core/tests/ Drupal/ Tests/ Core/ Entity/ EntityManagerTest.php, line 656 
Class
- EntityManagerTest
- @coversDefaultClass \Drupal\Core\Entity\EntityManager @group Entity @group legacy
Namespace
Drupal\Tests\Core\EntityCode
public function testGetStorage() {
  $storage = $this
    ->prophesize(EntityStorageInterface::class)
    ->reveal();
  $this->entityTypeManager
    ->getStorage('entity_test')
    ->shouldBeCalled()
    ->willReturn($storage);
  $this
    ->assertInstanceOf(EntityStorageInterface::class, $this->entityManager
    ->getStorage('entity_test'));
}