SchemaMetatagCourseTest.test in Schema.org Metatag 7
File
schema_course/tests/SchemaMetatagCourseTest.test
View source
<?php
class SchemaMetatagCourseTest extends SchemaMetatagTagsTestBase {
public static function getInfo() {
return array(
'name' => 'Schema Metatag: Course',
'description' => 'Test the schema_course meta tags.',
'group' => 'Schema Metatag',
'dependencies' => [
'ctools',
'token',
'metatag',
'schema_metatag',
'schema_course',
],
);
}
public function setUp(array $modules = array()) {
$modules[] = 'schema_course';
parent::setUp($modules);
}
public $moduleName = 'schema_course';
public $schemaTags = [
'schema_course.@type' => 'SchemaCourseType',
'schema_course.name' => 'SchemaNameBase',
'schema_course.courseCode' => 'SchemaNameBase',
'schema_course.description' => 'SchemaNameBase',
'schema_course.coursePrerequisites' => 'SchemaNameBase',
'schema_course.educationalCredentialAwarded' => 'SchemaNameBase',
'schema_course.provider' => 'SchemaPersonOrgBase',
];
}