function SupportedReleaseValidatorTest::setUp
Overrides PackageManagerKernelTestBase::setUp
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ SupportedReleaseValidatorTest.php, line 24
Class
- SupportedReleaseValidatorTest
- @coversDefaultClass \Drupal\package_manager\Validator\SupportedReleaseValidator @group package_manager @internal
Namespace
Drupal\Tests\package_manager\KernelCode
protected function setUp() : void {
parent::setUp();
(new ActiveFixtureManipulator())->addPackage([
'name' => "drupal/dependency",
'version' => '9.8.0',
'type' => 'drupal-library',
])
->addPackage([
'name' => "drupal/semver_test",
'version' => '8.1.0',
'type' => 'drupal-module',
])
->addPackage([
'name' => "drupal/aaa_update_test",
'version' => '2.0.0',
'type' => 'drupal-module',
])
->addPackage([
'name' => "drupal/package_manager_theme",
'version' => '8.1.0',
'type' => 'drupal-theme',
])
->addPackage([
'name' => "somewhere/a_drupal_module",
'version' => '8.1.0',
'type' => 'drupal-module',
])
->addPackage([
'name' => "drupal/module_no_project",
'version' => '1.0.0',
'type' => 'drupal-module',
], FALSE, FALSE, [
'module_no_project.info.yml' => '{name: "Module No Project", type: "module"}',
])
->commitChanges();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.