function ComposerInspectorTest::testRootPackageInfo
@covers ::getRootPackageInfo
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerInspectorTest.php, line 345
Class
- ComposerInspectorTest
- @coversDefaultClass \Drupal\package_manager\ComposerInspector
Namespace
Drupal\Tests\package_manager\KernelCode
public function testRootPackageInfo() : void {
$project_root = $this->container
->get(PathLocator::class)
->getProjectRoot();
$info = $this->container
->get(ComposerInspector::class)
->getRootPackageInfo($project_root);
$this->assertSame('fake/site', $info['name']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.