function BuilderTest::testBuilder
Tests all of the various kinds of builders.
@dataProvider builderTestData
File
- 
              core/
tests/ Drupal/ Tests/ Composer/ Generator/ BuilderTest.php, line 89  
Class
- BuilderTest
 - Test DrupalCoreRecommendedBuilder.
 
Namespace
Drupal\Tests\Composer\GeneratorCode
public function testBuilder($builderClass, $expected) {
  $fixtures = new Fixtures();
  $drupalCoreInfo = $fixtures->drupalCoreComposerFixture();
  $builder = new $builderClass($drupalCoreInfo);
  $generatedJson = $builder->getPackage();
  $this->assertEquals($expected, $generatedJson);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.