Commit 5e4ce076 authored by catch's avatar catch
Browse files

Issue #2981556 by alexpott: Properly deprecate EntityCacheTagsTestBase and...

Issue #2981556 by alexpott: Properly deprecate EntityCacheTagsTestBase and remove incorrect references
parent b55ed6bd
......@@ -14,11 +14,15 @@
use Drupal\user\Entity\Role;
use Drupal\user\RoleInterface;
@trigger_error(__NAMESPACE__ . '\EntityCacheTagsTestBase is deprecated in Drupal 8.6.x and will be removed before Drupal 9.0.0. Instead, use \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase. See https://www.drupal.org/node/2946549.', E_USER_DEPRECATED);
/**
* Provides helper methods for Entity cache tags tests.
*
* @deprecated Scheduled for removal in Drupal 9.0.0.
* Use \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase instead.
*
* @see https://www.drupal.org/node/2946549
*/
abstract class EntityCacheTagsTestBase extends PageCacheTagsTestBase {
......
......@@ -153,7 +153,7 @@ protected function getAccessCacheContextsForEntity(EntityInterface $entity) {
* @return string[]
* An array of the additional cache contexts.
*
* @see \Drupal\system\Tests\Entity\EntityCacheTagsTestBase::createEntity()
* @see \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::createEntity()
*/
protected function getAdditionalCacheContextsForEntity(EntityInterface $entity) {
return [];
......@@ -167,7 +167,7 @@ protected function getAdditionalCacheContextsForEntity(EntityInterface $entity)
* @return array
* An array of the additional cache tags.
*
* @see \Drupal\system\Tests\Entity\EntityCacheTagsTestBase::createEntity()
* @see \Drupal\Tests\system\Functional\Entity\EntityCacheTagsTestBase::createEntity()
*/
protected function getAdditionalCacheTagsForEntity(EntityInterface $entity) {
return [];
......
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