You are here

protected function EntityLoadHelperTest::getEntityStorageMock in YAML Content 8

Get a mock for an entity storage handler.

Return value

\PHPUnit_Framework_MockObject_MockObject|EntityStorageInterface

File

tests/src/Unit/EntityLoadHelper/EntityLoadHelperTest.php, line 594

Class

EntityLoadHelperTest
Test functionality of the EntityLoadHelper class.

Namespace

Drupal\Tests\yaml_content\Unit\EntityLoadHelper

Code

protected function getEntityStorageMock() {
  $mock = $this
    ->getMockForAbstractClass(EntityStorageInterface::class);
  return $mock;
}