function InstalledPackageTest::testMetapackageWithAPath
Same name and namespace in other branches
- 11.x core/modules/package_manager/tests/src/Unit/InstalledPackageTest.php \Drupal\Tests\package_manager\Unit\InstalledPackageTest::testMetapackageWithAPath()
Tests metapackage with a path.
@legacy-covers ::createFromArray
File
-
core/
modules/ package_manager/ tests/ src/ Unit/ InstalledPackageTest.php, line 61
Class
Namespace
Drupal\Tests\package_manager\UnitCode
public function testMetapackageWithAPath() : void {
$this->expectException(\AssertionError::class);
$this->expectExceptionMessage('Metapackage install path must be NULL.');
InstalledPackage::createFromArray([
'name' => 'vendor/test',
'type' => 'metapackage',
'version' => '1.0.0',
'path' => __DIR__,
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.