function SystemMenuBlockTest::configExpandedTestCases

Same name in other branches
  1. 9 core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php \Drupal\Tests\system\Kernel\Block\SystemMenuBlockTest::configExpandedTestCases()
  2. 10 core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php \Drupal\Tests\system\Kernel\Block\SystemMenuBlockTest::configExpandedTestCases()
  3. 11.x 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 316

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' => [],
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.