You are here

public function SystemMenuBlockTest::configExpandedTestCases in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php \Drupal\Tests\system\Kernel\Block\SystemMenuBlockTest::configExpandedTestCases()
  2. 9 core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php \Drupal\Tests\system\Kernel\Block\SystemMenuBlockTest::configExpandedTestCases()

Return value

array

File

core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php, line 315

Class

SystemMenuBlockTest
Tests \Drupal\system\Plugin\Block\SystemMenuBlock.

Namespace

Drupal\Tests\system\Kernel\Block

Code

public function configExpandedTestCases() {
  return [
    'All levels' => [
      'example5',
      1,
      [
        'test.example1' => [],
        'test.example2' => [
          'test.example3' => [
            'test.example4' => [],
          ],
        ],
        'test.example5' => [
          'test.example7' => [],
        ],
        'test.example6' => [],
        'test.example8' => [],
      ],
    ],
    'Level two in "example 5" branch' => [
      'example5',
      2,
      [
        'test.example7' => [],
      ],
    ],
    'Level three in "example 5" branch' => [
      'example5',
      3,
      [],
    ],
    'Level three in "example 4" branch' => [
      'example4',
      3,
      [
        'test.example4' => [],
      ],
    ],
  ];
}