You are here

public function EntityFinderTest::testFindEntitiesByUuidNotFound in Feeds 8.3

@covers ::findEntities

File

tests/src/Unit/EntityFinderTest.php, line 151

Class

EntityFinderTest
@coversDefaultClass \Drupal\feeds\EntityFinder @group feeds

Namespace

Drupal\Tests\feeds\Unit

Code

public function testFindEntitiesByUuidNotFound() {
  $this->entityRepository
    ->loadEntityByUuid('foo', '31835cb0-7302-403b-92ab-c228547d13fc')
    ->willReturn(NULL);
  $entity_ids = $this
    ->createEntityFinderInstance()
    ->findEntities('foo', 'uuid', '31835cb0-7302-403b-92ab-c228547d13fc');
  $this
    ->assertEquals([], $entity_ids);
}