function TestRunnerKernelTest::providerTestConstructor

Data provider for self::testConstructor().

File

core/tests/Drupal/Tests/Core/Test/TestRunnerKernelTest.php, line 23

Class

TestRunnerKernelTest
@coversDefaultClass \Drupal\Core\Test\TestRunnerKernel @runTestsInSeparateProcesses @preserveGlobalState disabled @group Test @group simpletest

Namespace

Drupal\Tests\Core\Test

Code

public function providerTestConstructor() {
    $core = [
        'core' => [
            'modules' => [
                'system' => [
                    'system.info.yml' => 'type: module',
                ],
            ],
        ],
    ];
    $tests = [];
    $tests['simpletest-in-contrib'] = [
        $core + [
            'modules' => [
                'contrib' => [
                    'simpletest' => [
                        'simpletest.info.yml' => 'type: module',
                    ],
                ],
            ],
        ],
        'modules/contrib/simpletest',
    ];
    $tests['simpletest-simpletest-in-contrib'] = [
        $core + [
            'modules' => [
                'contrib' => [
                    'simpletest-simpletest' => [
                        'simpletest.info.yml' => 'type: module',
                    ],
                ],
            ],
        ],
        'modules/contrib/simpletest-simpletest',
    ];
    $tests['simpletest-no-contrib'] = [
        $core + [
            'modules' => [
                'simpletest' => [
                    'simpletest.info.yml' => 'type: module',
                ],
            ],
        ],
        'modules/simpletest',
    ];
    $tests['no-simpletest'] = [
        $core,
        FALSE,
    ];
    return $tests;
}

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