function TestSandboxManager::__sleep

Same name and namespace in other branches
  1. 11.x core/modules/package_manager/tests/src/Kernel/PackageManagerKernelTestBase.php \Drupal\Tests\package_manager\Kernel\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/node/3312619#comment-14801308

File

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

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.