SchemaMetatagBookTest.test in Schema.org Metatag 7
File
schema_book/tests/SchemaMetatagBookTest.test
View source
<?php
class SchemaMetatagBookTest extends SchemaMetatagTagsTestBase {
public static function getInfo() {
return array(
'name' => 'Schema Metatag: Book',
'description' => 'Test the schema_book meta tags.',
'group' => 'Schema Metatag',
'dependencies' => [
'ctools',
'token',
'metatag',
'schema_metatag',
'schema_book',
],
);
}
public function setUp(array $modules = array()) {
$modules[] = 'schema_book';
parent::setUp($modules);
}
public $moduleName = 'schema_book';
public $schemaTags = [
'schema_book.@type' => 'SchemaBookType',
'schema_book.author' => 'SchemaPersonOrgBase',
'schema_book.name' => 'SchemaNameBase',
'schema_book.@id' => 'SchemaNameBase',
'schema_book.description' => 'SchemaNameBase',
'schema_book.image' => 'SchemaImageBase',
'schema_book.url' => 'SchemaUrlBase',
'schema_book.sameAs' => 'SchemaUrlBase',
'schema_book.aggregateRating' => 'SchemaRatingBase',
'schema_book.review' => 'SchemaReviewBase',
'schema_book.workExample' => 'SchemaCreativeWorkBase',
];
}