You are here

public function EntityFinderTest::testFindEntityFromFields in UI Patterns 8

Test find entity from fields.

@dataProvider fieldsDataProvider

File

modules/ui_patterns_field_group/tests/src/Unit/EntityFinderTest.php, line 21

Class

EntityFinderTest
Test entity finder utility.

Namespace

Drupal\Tests\ui_patterns_field_group\Unit

Code

public function testFindEntityFromFields($fields, $expected) {
  $finder = new EntityFinder();
  $entity = $finder
    ->findEntityFromFields($fields);
  $this
    ->assertEquals($expected, $entity);
}