Skip to content
Snippets Groups Projects
Commit 06572199 authored by Angie Byron's avatar Angie Byron
Browse files

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

parent 7db9aaea
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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(
......
......@@ -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';
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment