Skip to content
Snippets Groups Projects
Commit e12bfe22 authored by Sam Becker's avatar Sam Becker
Browse files

Move deprecated class to test module and fix testing.

parent 8a8b6854
Branches
Tags 8.x-1.0-alpha1
No related merge requests found
<?php
namespace Drupal\json_ld_schema\Source;
namespace Drupal\json_ld_schema_test_sources;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\json_ld_schema\Source\JsonLdSourceBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Base class for JSON LD sources that should appear on entity pages.
*
* @deprecated
* Use the JsonLdEntity plugin type instead of this base class.
* Use the JsonLdEntity plugin type instead of this base class. This used to
* be a thing until JsonLdEntity, but now it only exists as a good test case
* for the render cache integration of JsonLdSource.
*/
abstract class EntityJsonLdSourceBase extends JsonLdSourceBase implements ContainerFactoryPluginInterface {
......
......@@ -2,7 +2,7 @@
namespace Drupal\json_ld_schema_test_sources\Plugin\JsonLdSource;
use Drupal\json_ld_schema\Source\EntityJsonLdSourceBase;
use Drupal\json_ld_schema_test_sources\EntityJsonLdSourceBase;
use Spatie\SchemaOrg\Schema;
use Spatie\SchemaOrg\Type;
......
......@@ -2,7 +2,6 @@
namespace Drupal\Tests\json_ld_schema\Functional;
use Drupal\local_testing\LocalTestingTrait;
use Drupal\node\Entity\Node;
use Drupal\node\Entity\NodeType;
use Drupal\Tests\BrowserTestBase;
......@@ -14,8 +13,6 @@ use Drupal\Tests\BrowserTestBase;
*/
class JsonLdEntityTest extends BrowserTestBase {
use LocalTestingTrait;
/**
* {@inheritdoc}
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment