function ComposerIntegrationTest::testMalformedComposerJson

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

Tests that malformed composer.json falls back to the default.

File

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

Class

ComposerIntegrationTest
Tests Composer integration.

Namespace

Drupal\Tests\Composer

Code

public function testMalformedComposerJson() : void {
  $root = vfsStream::setup('project', NULL, [
    'composer.json' => '{not valid json',
  ])->url();
  $this->assertSame($root . '/vendor/bin', self::binDir($root));
}

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