function GenericCacheBackendUnitTestBase::getTestBin

Same name in this branch
  1. 8.9.x core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php \Drupal\KernelTests\Core\Cache\GenericCacheBackendUnitTestBase::getTestBin()
Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php \Drupal\KernelTests\Core\Cache\GenericCacheBackendUnitTestBase::getTestBin()
  2. 10 core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php \Drupal\KernelTests\Core\Cache\GenericCacheBackendUnitTestBase::getTestBin()
  3. 11.x 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.

1 call to GenericCacheBackendUnitTestBase::getTestBin()
GenericCacheBackendUnitTestBase::getCacheBackend in core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php
Gets a backend to test; this will get a shared instance set in the object.

File

core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php, line 56

Class

GenericCacheBackendUnitTestBase
Tests any cache backend.

Namespace

Drupal\system\Tests\Cache

Code

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

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