You are here

public function MockBin::__construct in MongoDB 7

MockBin constructor.

Parameters

string $bin: The name of the mocked bin.

Overrides Cache::__construct

File

mongodb_cache/src/Tests/CacheUnitTestCase.php, line 70

Class

MockBin

Namespace

Drupal\mongodb_cache\Tests

Code

public function __construct($bin) {

  // Do not call parent::__construct($bin) to preserve the "mock" aspect.
  $this->collection = new MockCollection($bin);
}