public function WebformViewsRelationshipTestBase::providerRelationship in Webform Views Integration 8.5
Data provider for the ::testRelationship() method.
You might want to override this method with more specific cases in a child class.
File
- tests/
src/ Kernel/ relationship/ WebformViewsRelationshipTestBase.php, line 44
Class
- WebformViewsRelationshipTestBase
- Reasonable starting point for testing webform views relationships.
Namespace
Drupal\Tests\webform_views\Kernel\relationshipCode
public function providerRelationship() {
$tests = [];
$expected = [];
foreach ($this->webform_submissions_data as $webform_submission) {
$target_id = reset($webform_submission);
$expected[] = [
'entity_id' => (string) $target_id,
];
}
$tests[] = [
$expected,
];
return $tests;
}