You are here

SchemaRecipeTest.php in Schema.org Metatag 8

Same filename and directory in other branches
  1. 8.2 schema_recipe/tests/src/Functional/SchemaRecipeTest.php

File

schema_recipe/tests/src/Functional/SchemaRecipeTest.php
View source
<?php

namespace Drupal\Tests\schema_recipe\Functional;

use Drupal\Tests\schema_metatag\Functional\SchemaMetatagTagsTestBase;

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

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

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

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

  /**
   * {@inheritdoc}
   */
  public $schemaTags = [
    'schema_recipe_aggregate_rating' => 'SchemaRecipeAggregateRating',
    'schema_recipe_review' => 'SchemaRecipeReview',
    'schema_recipe_author' => 'SchemaRecipeAuthor',
    'schema_recipe_cook_time' => 'SchemaRecipeCookTime',
    'schema_recipe_date_published' => 'SchemaRecipeDatePublished',
    'schema_recipe_description' => 'SchemaRecipeDescription',
    'schema_recipe_image' => 'SchemaRecipeImage',
    'schema_recipe_name' => 'SchemaRecipeName',
    'schema_recipe_prep_time' => 'SchemaRecipePrepTime',
    'schema_recipe_recipe_category' => 'SchemaRecipeRecipeCategory',
    'schema_recipe_recipe_ingredient' => 'SchemaRecipeRecipeIngredient',
    'schema_recipe_recipe_instructions' => 'SchemaRecipeRecipeInstructions',
    'schema_recipe_recipe_yield' => 'SchemaRecipeRecipeYield',
    'schema_recipe_total_time' => 'SchemaRecipeTotalTime',
    'schema_recipe_type' => 'SchemaRecipeType',
    'schema_recipe_nutrition' => 'SchemaRecipeNutrition',
    'schema_recipe_recipe_cuisine' => 'SchemaRecipeRecipeCuisine',
  ];

}

Classes

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