You are here

public function ScaffoldTest::scaffoldExpectedExceptionTestValues in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php \Drupal\Tests\Composer\Plugin\Scaffold\Functional\ScaffoldTest::scaffoldExpectedExceptionTestValues()
  2. 10 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 138

Class

ScaffoldTest
Tests Composer Scaffold.

Namespace

Drupal\Tests\Composer\Plugin\Scaffold\Functional

Code

public 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,
    ],
  ];
}