function TestSandboxManager::__sleep

Implements the magic __sleep() method.

TRICKY: without this, any failed ::assertStatusCheckResults() will fail, because PHPUnit will want to serialize all arguments in the call stack.

See also

https://www.drupal.org/project/auto_updates/issues/3312619#comment-1480…

File

core/modules/package_manager/tests/src/Kernel/PackageManagerKernelTestBase.php, line 472

Class

TestSandboxManager
Defines a stage specifically for testing purposes.

Namespace

Drupal\Tests\package_manager\Kernel

Code

public function __sleep() : array {
    return [];
}

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