createSutWithGit example

// Run composer install, but suppress scaffolding.     $this->fixtures->runComposer("install --no-ansi --no-scripts --no-plugins", $sut);
    return $sut;
  }

  /** * Tests scaffold command correctly manages the .gitignore file. */
  public function testManageGitIgnore() {
    // Note that the drupal-composer-drupal-project fixture does not     // have any configuration settings related to .gitignore management.     $sut = $this->createSutWithGit('drupal-composer-drupal-project');
    $this->assertFileDoesNotExist($sut . '/docroot/autoload.php');
    $this->assertFileDoesNotExist($sut . '/docroot/index.php');
    $this->assertFileDoesNotExist($sut . '/docroot/sites/.gitignore');
    // Run the scaffold command.     $this->fixtures->runScaffold($sut);
    $this->assertFileExists($sut . '/docroot/autoload.php');
    $this->assertFileExists($sut . '/docroot/index.php');
    $expected = <<<EOT /build /.csslintrc /.editorconfig /.eslintignore /.eslintrc.json /.gitattributes /.ht.router.php /autoload.php /index.php /robots.txt /update.php /web.config
Home | Imprint | This part of the site doesn't use cookies.