public function PackageManagerTest::testRequiredPackages in Composer Manager 8
@covers ::getRequiredPackages @covers ::processRequiredPackages
File
- tests/
src/ Unit/ PackageManagerTest.php, line 166
Class
- PackageManagerTest
- @coversDefaultClass \Drupal\composer_manager\PackageManager @group composer_manager
Namespace
Drupal\Tests\composer_manager\UnitCode
public function testRequiredPackages() {
$expected_packages = [
'symfony/css-selector' => [
'constraint' => '2.6.*',
'description' => '',
'homepage' => '',
'require' => [],
'required_by' => [
'drupal/commerce_kickstart',
],
'version' => '',
],
'symfony/config' => [
'constraint' => '2.6.*',
'description' => '',
'homepage' => '',
'require' => [],
'required_by' => [
'drupal/test2',
],
'version' => '',
],
'symfony/intl' => [
'constraint' => '2.6.*',
'description' => '',
'homepage' => '',
'require' => [],
'required_by' => [
'drupal/test1',
],
'version' => '',
],
];
$required_packages = $this->manager
->getRequiredPackages();
$this
->assertEquals($expected_packages, $required_packages);
}