You are here

MetatagFacebookTagsTest.test in Metatag 7

Tests that each of the Metatag Facebook tags work correctly.

File

metatag_facebook/tests/MetatagFacebookTagsTest.test
View source
<?php

/**
 * @file
 * Tests that each of the Metatag Facebook tags work correctly.
 */

/**
 * Tests that each of the Metatag Facebook tags work correctly.
 */
class MetatagFacebookTagsTest extends MetatagTagsTestBase {

  /**
   * {@inheritdoc}
   */
  public static function getInfo() {
    return array(
      'name' => 'Metatag tags: Facebook',
      'description' => 'Test the Facebook meta tags.',
      'group' => 'Metatag',
      'dependencies' => array(
        'ctools',
        'devel',
        'token',
      ),
    );
  }

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

  /**
   * {@inheritdoc}
   */
  public $tags = array(
    'fb:admins',
    'fb:app_id',
    'fb:pages',
  );

  /**
   * {@inheritdoc}
   */
  public $test_name_attribute = 'property';

  /**
   * {@inheritdoc}
   */
  public function getTestTagName($tag_name) {
    return str_replace('fb_', 'fb:', $tag_name);
  }

}

Classes

Namesort descending Description
MetatagFacebookTagsTest Tests that each of the Metatag Facebook tags work correctly.