PackageManagerKernelTestBase::$client

Same name and namespace in other branches
  1. 11.x core/modules/package_manager/tests/src/Kernel/PackageManagerKernelTestBase.php \Drupal\Tests\package_manager\Kernel\PackageManagerKernelTestBase::client

The mocked HTTP client that returns metadata about available updates.

We need to preserve this as a class property so that we can re-inject it into the container when a rebuild is triggered by module installation.

Type: \GuzzleHttp\Client

See also

::register()

File

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

Class

PackageManagerKernelTestBase
Base class for kernel tests of Package Manager's functionality.

Namespace

Drupal\Tests\package_manager\Kernel

Code

private $client;

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