You are here

public function WebformReflectionHelperTest::providerGetParentClasses in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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\Utility

Code

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;
}