public function PackageManagerTest::testGetPackages in Ludwig 8
@covers ::getPackages
File
- tests/
src/ Unit/ PackageManagerTest.php, line 263
Class
- PackageManagerTest
- @coversDefaultClass \Drupal\ludwig\PackageManager @group ludwig
Namespace
Drupal\Tests\ludwig\UnitCode
public function testGetPackages() {
$expected_packages = [
'symfony/css-selector' => [
'name' => 'symfony/css-selector',
'version' => 'v3.2.8',
'description' => '',
'homepage' => '',
'provider' => 'lightning',
'provider_path' => 'profiles/lightning',
'download_url' => 'https://github.com/symfony/css-selector/archive/v3.2.8.zip',
'disable_warnings' => FALSE,
'path' => 'profiles/lightning/lib/symfony-css-selector/v3.2.8',
'namespace' => '',
'paths' => [],
'installed' => FALSE,
'resource' => '',
],
'symfony/intl' => [
'name' => 'symfony/intl',
'version' => 'v3.2.8',
'description' => '',
'homepage' => '',
'provider' => 'test1',
'provider_path' => 'modules/test1',
'download_url' => 'https://github.com/symfony/intl/archive/v3.2.8.zip',
'disable_warnings' => FALSE,
'path' => 'modules/test1/lib/symfony-intl/v3.2.8',
'namespace' => '',
'paths' => [],
'installed' => FALSE,
'resource' => '',
],
'symfony/config_src' => [
'name' => 'symfony/config',
'version' => 'v3.2.8',
'description' => 'Symfony Config Component',
'homepage' => 'http://symfony.com',
'provider' => 'test2',
'provider_path' => 'sites/all/modules/test2',
'download_url' => 'https://github.com/symfony/config/archive/v3.2.8.zip',
'disable_warnings' => FALSE,
'path' => 'sites/all/modules/test2/lib/symfony-config/v3.2.8',
'namespace' => 'Symfony\\Component\\Config',
'paths' => [
'src',
],
'installed' => TRUE,
'resource' => 'psr-4',
],
'html2text/html2text_src-test' => [
'name' => 'html2text/html2text',
'version' => 'v4.3.1',
'description' => 'Converts HTML to formatted plain text',
'homepage' => '',
'provider' => 'test3a',
'provider_path' => 'modules/test3a',
'download_url' => 'https://github.com/mtibben/html2text/archive/4.3.1.zip',
'disable_warnings' => FALSE,
'path' => 'modules/test3a/lib/html2text-html2text/v4.3.1',
'namespace' => 'Html2Text',
'paths' => [
'src',
'test',
],
'installed' => TRUE,
'resource' => 'psr-4',
],
'dompdf/dompdf_src' => [
'name' => 'dompdf/dompdf',
'version' => 'v0.8.6',
'description' => 'DOMPDF is a CSS 2.1 compliant HTML to PDF converter',
'homepage' => 'https://github.com/dompdf/dompdf',
'provider' => 'entity_print',
'provider_path' => 'modules/entity_print',
'download_url' => 'https://github.com/dompdf/dompdf/releases/download/v0.8.6/dompdf_0-8-6.zip',
'disable_warnings' => 'TRUE',
'path' => 'modules/entity_print/lib/dompdf-dompdf/v0.8.6',
'namespace' => 'Dompdf',
'paths' => [
'src',
],
'installed' => TRUE,
'resource' => 'psr-4',
],
'dompdf/dompdf_lib' => [
'name' => 'dompdf/dompdf',
'version' => 'v0.8.6',
'description' => 'DOMPDF is a CSS 2.1 compliant HTML to PDF converter',
'homepage' => 'https://github.com/dompdf/dompdf',
'provider' => 'entity_print',
'provider_path' => 'modules/entity_print',
'download_url' => 'https://github.com/dompdf/dompdf/releases/download/v0.8.6/dompdf_0-8-6.zip',
'disable_warnings' => 'TRUE',
'path' => 'modules/entity_print/lib/dompdf-dompdf/v0.8.6',
'namespace' => 'classmap',
'paths' => [
'lib',
],
'installed' => TRUE,
'resource' => 'classmap',
],
'querypath/QueryPath_src/QueryPath' => [
'name' => 'querypath/QueryPath',
'version' => 'v3.0.5',
'description' => 'HTML/XML querying (CSS 4 or XPath) and processing (like jQuery)',
'homepage' => 'https://github.com/technosophos/querypath',
'provider' => 'feeds_ex',
'provider_path' => 'modules/feeds_ex',
'download_url' => 'https://github.com/technosophos/querypath/archive/3.0.5.zip',
'disable_warnings' => FALSE,
'path' => 'modules/feeds_ex/lib/querypath-QueryPath/v3.0.5',
'namespace' => 'QueryPath',
'paths' => [
'src/QueryPath',
],
'installed' => TRUE,
'resource' => 'psr-0',
],
'querypath/QueryPath_src/qp_functions.php' => [
'name' => 'querypath/QueryPath',
'version' => 'v3.0.5',
'description' => 'HTML/XML querying (CSS 4 or XPath) and processing (like jQuery)',
'homepage' => 'https://github.com/technosophos/querypath',
'provider' => 'feeds_ex',
'provider_path' => 'modules/feeds_ex',
'download_url' => 'https://github.com/technosophos/querypath/archive/3.0.5.zip',
'disable_warnings' => FALSE,
'path' => 'modules/feeds_ex/lib/querypath-QueryPath/v3.0.5',
'namespace' => 'files',
'paths' => [
'src/qp_functions.php',
],
'installed' => TRUE,
'resource' => 'files',
],
'maxmind/web-service-common_src/Exception' => [
'name' => 'maxmind/web-service-common',
'version' => 'v0.8.0',
'description' => 'Internal MaxMind Web Service API',
'homepage' => 'https://github.com/maxmind/web-service-common-php',
'provider' => 'geoip',
'provider_path' => 'modules/geoip',
'download_url' => 'https://github.com/maxmind/web-service-common-php/archive/v0.8.0.zip',
'disable_warnings' => FALSE,
'path' => 'modules/geoip/lib/maxmind-web-service-common/v0.8.0',
'namespace' => 'MaxMind\\Exception',
'paths' => [
'src/Exception',
],
'installed' => TRUE,
'resource' => 'psr-4',
],
'maxmind/web-service-common_src/WebService' => [
'name' => 'maxmind/web-service-common',
'version' => 'v0.8.0',
'description' => 'Internal MaxMind Web Service API',
'homepage' => 'https://github.com/maxmind/web-service-common-php',
'provider' => 'geoip',
'provider_path' => 'modules/geoip',
'download_url' => 'https://github.com/maxmind/web-service-common-php/archive/v0.8.0.zip',
'disable_warnings' => FALSE,
'path' => 'modules/geoip/lib/maxmind-web-service-common/v0.8.0',
'namespace' => 'MaxMind\\WebService',
'paths' => [
'src/WebService',
],
'installed' => TRUE,
'resource' => 'psr-4',
],
];
$required_packages = $this->manager
->getPackages();
$this
->assertEquals($expected_packages, $required_packages);
}