You are here

public function ScaffoldTest::testProjectThatScaffoldsEmptyProject 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::testProjectThatScaffoldsEmptyProject()
  2. 10 core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ScaffoldTest.php \Drupal\Tests\Composer\Plugin\Scaffold\Functional\ScaffoldTest::testProjectThatScaffoldsEmptyProject()

Try to scaffold a project that allows a project with no scaffold files.

File

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

Class

ScaffoldTest
Tests Composer Scaffold.

Namespace

Drupal\Tests\Composer\Plugin\Scaffold\Functional

Code

public function testProjectThatScaffoldsEmptyProject() {
  $fixture_name = 'project-allowing-empty-fixture';
  $result = $this
    ->scaffoldSut($fixture_name, FALSE, FALSE);
  $this
    ->assertStringContainsString('The allowed package fixtures/empty-fixture does not provide a file mapping for Composer Scaffold', $result
    ->scaffoldOutput());
  $this
    ->assertCommonDrupalAssetsWereScaffolded($result
    ->docroot(), FALSE);
  $this
    ->assertAutoloadFileCorrect($result
    ->docroot());
}