public function WebformReflectionHelperTest::providerGetParentClasses in Webform 6.x
Same name and namespace in other branches
- 8.5 tests/src/Unit/Utility/WebformReflectionHelperTest.php \Drupal\Tests\webform\Unit\Utility\WebformReflectionHelperTest::providerGetParentClasses()
Data provider for testGetParentClasses().
See also
testGetParentClasses()
File
- tests/
src/ Unit/ Utility/ WebformReflectionHelperTest.php, line 42
Class
- WebformReflectionHelperTest
- Tests webform reflection utility.
Namespace
Drupal\Tests\webform\Unit\UtilityCode
public function providerGetParentClasses() {
$tests[] = [
new WebformReflectionTestParent(),
'',
[
'WebformReflectionTestParent',
],
];
$tests[] = [
new WebformReflectionTestChild(),
'',
[
'WebformReflectionTestParent',
'WebformReflectionTestChild',
],
];
$tests[] = [
new WebformReflectionTestGrandChild(),
'',
[
'WebformReflectionTestParent',
'WebformReflectionTestChild',
'WebformReflectionTestGrandChild',
],
];
$tests[] = [
new WebformReflectionTestGrandChild(),
'WebformReflectionTestParent',
[
'WebformReflectionTestParent',
'WebformReflectionTestChild',
'WebformReflectionTestGrandChild',
],
];
$tests[] = [
new WebformReflectionTestGrandChild(),
'WebformReflectionTestChild',
[
'WebformReflectionTestChild',
'WebformReflectionTestGrandChild',
],
];
$tests[] = [
new WebformReflectionTestGrandChild(),
'WebformReflectionTestGrandChild',
[
'WebformReflectionTestGrandChild',
],
];
return $tests;
}