You are here

SchemaMetatagQAPageTest.test in Schema.org Metatag 7

File

schema_qa_page/tests/SchemaMetatagQAPageTest.test
View source
<?php

/**
 * Tests that each of the Metatag schema_qa_page tags work correctly.
 */
class SchemaMetatagQAPageTest extends SchemaMetatagTagsTestBase {

  /**
   * {@inheritdoc}
   */
  public static function getInfo() {
    return array(
      'name' => 'Schema Metatag: QAPage/FAQPage',
      'description' => 'Test the schema_qa_page meta tags.',
      'group' => 'Schema Metatag',
      'dependencies' => [
        'ctools',
        'token',
        'metatag',
        'schema_metatag',
        'schema_qa_page',
      ],
    );
  }

  /**
   * {@inheritdoc}
   */
  public function setUp(array $modules = array()) {
    $modules[] = 'schema_qa_page';
    parent::setUp($modules);
  }

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

  /**
   * {@inheritdoc}
   */
  public $schemaTags = [
    'schema_qa_page.@type' => 'SchemaQAPageType',
    'schema_qa_page.mainEntity' => 'SchemaQuestionBase',
  ];

}

Classes

Namesort descending Description
SchemaMetatagQAPageTest Tests that each of the Metatag schema_qa_page tags work correctly.