function ComposerIntegrationTest::setUp

Same name and namespace in other branches
  1. main core/tests/Drupal/Tests/Composer/ComposerIntegrationTest.php \Drupal\Tests\Composer\ComposerIntegrationTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Composer/ComposerIntegrationTest.php, line 32

Class

ComposerIntegrationTest
Tests Composer integration.

Namespace

Drupal\Tests\Composer

Code

protected function setUp() : void {
  parent::setUp();
  $this->originalBinDirEnv = getenv('COMPOSER_BIN_DIR');
  // Ensure a clean environment for every test.
  putenv('COMPOSER_BIN_DIR');
}

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