You are here

protected function GenericCacheBackendUnitTestBase::getTestBin in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php \Drupal\KernelTests\Core\Cache\GenericCacheBackendUnitTestBase::getTestBin()

Gets the testing bin.

Override this method if you want to work on a different bin than the default one.

Return value

string Bin name.

2 calls to GenericCacheBackendUnitTestBase::getTestBin()
ApcuBackendTest::testSetGet in core/tests/Drupal/KernelTests/Core/Cache/ApcuBackendTest.php
Tests the get and set methods of Drupal\Core\Cache\CacheBackendInterface.
GenericCacheBackendUnitTestBase::getCacheBackend in core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php
Gets a backend to test; this will get a shared instance set in the object.

File

core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php, line 51

Class

GenericCacheBackendUnitTestBase
Tests any cache backend.

Namespace

Drupal\KernelTests\Core\Cache

Code

protected function getTestBin() {
  if (!isset($this->testBin)) {
    $this->testBin = 'page';
  }
  return $this->testBin;
}