You are here

public function ScaffoldTest::testEmptyProject in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php \Drupal\Tests\Composer\Plugin\Scaffold\Functional\ScaffoldTest::testEmptyProject()
  2. 9 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php \Drupal\Tests\Composer\Plugin\Scaffold\Functional\ScaffoldTest::testEmptyProject()

Try to scaffold a project that does not scaffold anything.

File

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

Class

ScaffoldTest
Tests Composer Scaffold.

Namespace

Drupal\Tests\Composer\Plugin\Scaffold\Functional

Code

public function testEmptyProject() {
  $fixture_name = 'empty-fixture';
  $result = $this
    ->scaffoldSut($fixture_name, FALSE, FALSE);
  $this
    ->assertStringContainsString('Nothing scaffolded because no packages are allowed in the top-level composer.json file', $result
    ->scaffoldOutput());
}