You are here

protected function MemcacheSettingsTest::setUp in Memcache API and Integration 8.2

@covers ::__construct

Overrides UnitTestCase::setUp

File

tests/src/Unit/MemcacheSettingsTest.php, line 32

Class

MemcacheSettingsTest
@coversDefaultClass \Drupal\memcache\MemcacheSettings @group memcache

Namespace

Drupal\Tests\memcache\Unit

Code

protected function setUp() {
  $this->config = [
    'memcache' => [
      'servers' => [
        '127.0.0.2:12345' => 'default',
      ],
      'bin' => [
        'default' => 'default',
      ],
    ],
    'hash_salt' => $this
      ->randomMachineName(),
  ];
  $settings = new Settings($this->config);
  $this->settings = new MemcacheSettings($settings);
}