public function BuilderTest::testBuilder in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Composer/Generator/BuilderTest.php \Drupal\Tests\Composer\Generator\BuilderTest::testBuilder()
- 9 core/tests/Drupal/Tests/Composer/Generator/BuilderTest.php \Drupal\Tests\Composer\Generator\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);
}