function ScaffoldTest::scaffoldExpectedExceptionTestValues

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php \Drupal\Tests\Composer\Plugin\Scaffold\Functional\ScaffoldTest::scaffoldExpectedExceptionTestValues()
  2. 8.9.x core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php \Drupal\Tests\Composer\Plugin\Scaffold\Functional\ScaffoldTest::scaffoldExpectedExceptionTestValues()
  3. 11.x core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php \Drupal\Tests\Composer\Plugin\Scaffold\Functional\ScaffoldTest::scaffoldExpectedExceptionTestValues()

Data provider for testScaffoldWithExpectedException.

File

core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php, line 140

Class

ScaffoldTest
Tests Composer Scaffold.

Namespace

Drupal\Tests\Composer\Plugin\Scaffold\Functional

Code

public static function scaffoldExpectedExceptionTestValues() {
    return [
        [
            'drupal-drupal-missing-scaffold-file',
            'Scaffold file assets/missing-robots-default.txt not found in package fixtures/drupal-drupal-missing-scaffold-file.',
            TRUE,
        ],
        [
            'project-with-empty-scaffold-path',
            'No scaffold file path given for [web-root]/my-error in package fixtures/project-with-empty-scaffold-path',
            FALSE,
        ],
        [
            'project-with-illegal-dir-scaffold',
            'Scaffold file assets in package fixtures/project-with-illegal-dir-scaffold is a directory; only files may be scaffolded',
            FALSE,
        ],
    ];
}

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