You are here

SchemaBookTest.php in Schema.org Metatag 8

Same filename and directory in other branches
  1. 8.2 schema_book/tests/src/Functional/SchemaBookTest.php

File

schema_book/tests/src/Functional/SchemaBookTest.php
View source
<?php

namespace Drupal\Tests\schema_book\Functional;

use Drupal\Tests\schema_metatag\Functional\SchemaMetatagTagsTestBase;

/**
 * Tests that each of the Schema Metatag Articles tags work correctly.
 *
 * @group schema_metatag
 * @group schema_book
 */
class SchemaBookTest extends SchemaMetatagTagsTestBase {

  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'schema_book',
  ];

  /**
   * {@inheritdoc}
   */
  public $moduleName = 'schema_book';

  /**
   * {@inheritdoc}
   */
  public $schemaTagsNamespace = '\\Drupal\\schema_book\\Plugin\\metatag\\Tag\\';

  /**
   * {@inheritdoc}
   */
  public $schemaTags = [
    'schema_book_author' => 'SchemaBookAuthor',
    'schema_book_id' => 'SchemaBookId',
    'schema_book_name' => 'SchemaBookName',
    'schema_book_description' => 'SchemaBookDescription',
    'schema_book_same_as' => 'SchemaBookSameAs',
    'schema_book_type' => 'SchemaBookType',
    'schema_book_url' => 'SchemaBookUrl',
    'schema_book_work_example' => 'SchemaBookWorkExample',
    'schema_book_image' => 'SchemaBookImage',
    'schema_book_review' => 'SchemaBookReview',
    'schema_book_aggregate_rating' => 'SchemaBookAggregateRating',
  ];

}

Classes

Namesort descending Description
SchemaBookTest Tests that each of the Schema Metatag Articles tags work correctly.