Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / memcache / tests / src / Unit / MemcacheSettingsTest.php
similarity index 76%
rename from web/modules/contrib/memcache/tests/src/Unit/DrupalMemcacheConfigTest.php
rename to web/modules/contrib/memcache/tests/src/Unit/MemcacheSettingsTest.php
index f05d270022f266fbb819e3119274014570573548..29421a1abad28005ff7ff2ae8e365ad2c365774e 100644 (file)
@@ -1,21 +1,16 @@
 <?php
 
-/**
- * @file
- * Contains \Drupal\memcache\Tests\DrupalMemcacheConfigTest.
- */
-
 namespace Drupal\Tests\memcache\Unit;
 
-use Drupal\memcache\DrupalMemcacheConfig;
+use Drupal\memcache\MemcacheSettings;
 use Drupal\Core\Site\Settings;
 use Drupal\Tests\UnitTestCase;
 
 /**
- * @coversDefaultClass \Drupal\memcache\DrupalMemcacheConfig
+ * @coversDefaultClass \Drupal\memcache\MemcacheSettings
  * @group memcache
  */
-class DrupalMemcacheConfigTest extends UnitTestCase {
+class MemcacheSettingsTest extends UnitTestCase {
 
   /**
    * Simple settings array to test against.
@@ -27,23 +22,23 @@ class DrupalMemcacheConfigTest extends UnitTestCase {
   /**
    * The class under test.
    *
-   * @var \Drupal\memcache\DrupalMemcacheConfig
+   * @var \Drupal\memcache\MemcacheSettings
    */
   protected $settings;
 
   /**
    * @covers ::__construct
    */
-  protected function setUp(){
+  protected function setUp() {
     $this->config = [
       'memcache' => [
         'servers' => ['127.0.0.2:12345' => 'default'],
-        'bin' => ['default' => 'default']
+        'bin' => ['default' => 'default'],
       ],
       'hash_salt' => $this->randomMachineName(),
     ];
     $settings = new Settings($this->config);
-    $this->settings = new DrupalMemcacheConfig($settings);
+    $this->settings = new MemcacheSettings($settings);
   }
 
   /**
@@ -65,4 +60,5 @@ class DrupalMemcacheConfigTest extends UnitTestCase {
   public function testGetAll() {
     $this->assertEquals($this->config['memcache'], $this->settings->getAll());
   }
+
 }