Commit 06572199 authored by webchick's avatar webchick

Issue #2262483 follow-up by sun: Fixed Some PHPUnit tests do not exist.

parent 7db9aaea
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
/** /**
* Tests the event subscriber that disables the replica database. * Tests the event subscriber that disables the replica database.
*/ */
class IgnoreSecondarySubscriberTest extends UnitTestBase { class IgnoreReplicaSubscriberTest extends UnitTestBase {
public static function getInfo() { public static function getInfo() {
return array( return array(
......
...@@ -11,27 +11,6 @@ ...@@ -11,27 +11,6 @@
use Drupal\Core\Cache\CacheContextInterface; use Drupal\Core\Cache\CacheContextInterface;
use Drupal\Tests\UnitTestCase; 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. * Tests the CacheContexts service.
* *
...@@ -95,3 +74,25 @@ protected function getMockContainer() { ...@@ -95,3 +74,25 @@ protected function getMockContainer() {
->getMock(); ->getMock();
} }
} }
/**
* Fake cache context class.
*/
class FooCacheContext implements CacheContextInterface {
/**
* {@inheritdoc}
*/
public static function getLabel() {
return 'Foo';
}
/**
* {@inheritdoc}
*/
public function getContext() {
return 'bar';
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment