function FakeSiteFixtureTest::getExpectedFakeSitePackages

Gets the expected packages in the `fake_site` fixture.

Return value

string[] The package names.

3 calls to FakeSiteFixtureTest::getExpectedFakeSitePackages()
FakeSiteFixtureTest::testCallToRemovePackage in core/modules/package_manager/tests/src/Kernel/FakeSiteFixtureTest.php
Tests if `removePackage` can be called on all packages in the fixture.
FakeSiteFixtureTest::testCallToSetVersion in core/modules/package_manager/tests/src/Kernel/FakeSiteFixtureTest.php
Tests if `setVersion` can be called on all packages in the fixture.
FakeSiteFixtureTest::testExpectedPackages in core/modules/package_manager/tests/src/Kernel/FakeSiteFixtureTest.php
Checks that the expected packages are installed in the fake site fixture.

File

core/modules/package_manager/tests/src/Kernel/FakeSiteFixtureTest.php, line 108

Class

FakeSiteFixtureTest
Test that the 'fake-site' fixture is a valid starting point.

Namespace

Drupal\Tests\package_manager\Kernel

Code

private static function getExpectedFakeSitePackages() : array {
    $packages = [
        'drupal/core',
        'drupal/core-recommended',
        'drupal/core-dev',
    ];
    sort($packages);
    return $packages;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.