You are here

public function WebformViewsRelationshipTestBase::providerReverseRelationship in Webform Views Integration 8.5

Data provider for the ::testReverseRelationship() method.

You might want to override this method with more specific cases in a child class.

File

tests/src/Kernel/relationship/WebformViewsRelationshipTestBase.php, line 84

Class

WebformViewsRelationshipTestBase
Reasonable starting point for testing webform views relationships.

Namespace

Drupal\Tests\webform_views\Kernel\relationship

Code

public function providerReverseRelationship() {
  $tests = [];
  $expected = [];
  foreach ($this->webform_submissions_data as $webform_submission) {
    $target_id = reset($webform_submission);
    $expected[] = [
      'entity_id' => (string) $target_id,
      'sid' => '1',
    ];
  }
  $tests[] = [
    $expected,
  ];
  return $tests;
}