From 065721999aff95d6e5c4d882d1d249e14899e2f2 Mon Sep 17 00:00:00 2001
From: webchick <drupal@webchick.net>
Date: Sat, 21 Jun 2014 22:06:31 -0700
Subject: [PATCH] Issue #2262483 follow-up by sun: Fixed Some PHPUnit tests do
 not exist.

---
 .../System/IgnoreReplicaSubscriberTest.php    |  2 +-
 ...ser.php => LibraryDiscoveryParserTest.php} |  0
 .../Tests/Core/Cache/CacheContextsTest.php    | 43 ++++++++++---------
 3 files changed, 23 insertions(+), 22 deletions(-)
 rename core/tests/Drupal/Tests/Core/Asset/{LibraryDiscoveryParserTestParser.php => LibraryDiscoveryParserTest.php} (100%)

diff --git a/core/modules/system/src/Tests/System/IgnoreReplicaSubscriberTest.php b/core/modules/system/src/Tests/System/IgnoreReplicaSubscriberTest.php
index 059d3b499d81..c23fe5d8cdd3 100644
--- a/core/modules/system/src/Tests/System/IgnoreReplicaSubscriberTest.php
+++ b/core/modules/system/src/Tests/System/IgnoreReplicaSubscriberTest.php
@@ -17,7 +17,7 @@
 /**
  * Tests the event subscriber that disables the replica database.
  */
-class IgnoreSecondarySubscriberTest extends UnitTestBase {
+class IgnoreReplicaSubscriberTest extends UnitTestBase {
 
   public static function getInfo() {
     return array(
diff --git a/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTestParser.php b/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php
similarity index 100%
rename from core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTestParser.php
rename to core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php
diff --git a/core/tests/Drupal/Tests/Core/Cache/CacheContextsTest.php b/core/tests/Drupal/Tests/Core/Cache/CacheContextsTest.php
index e4309659bcf6..9a005ffbaf9d 100644
--- a/core/tests/Drupal/Tests/Core/Cache/CacheContextsTest.php
+++ b/core/tests/Drupal/Tests/Core/Cache/CacheContextsTest.php
@@ -11,27 +11,6 @@
 use Drupal\Core\Cache\CacheContextInterface;
 use Drupal\Tests\UnitTestCase;
 
-/**
- * Fake cache context class.
- */
-class FooCacheContext implements CacheContextInterface {
-
-  /**
-   * {@inheritdoc}
-   */
-  public static function getLabel() {
-    return 'Foo';
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function getContext() {
-    return 'bar';
-  }
-
-}
-
 /**
  * Tests the CacheContexts service.
  *
@@ -95,3 +74,25 @@ protected function getMockContainer() {
                 ->getMock();
   }
 }
+
+/**
+ * Fake cache context class.
+ */
+class FooCacheContext implements CacheContextInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function getLabel() {
+    return 'Foo';
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getContext() {
+    return 'bar';
+  }
+
+}
+
-- 
GitLab