public function MetatagTestBase::getTestDefaults in Metatag 7
Return an list of default values.
This should cover all of the default meta tags provided for a test:foo entity.
@todo Expand to cover more meta tags.
Return value
array List of meta tag default values to test.
See also
metatag_test_metatag_config_default()
1 call to MetatagTestBase::getTestDefaults()
- MetatagCoreUnitTest::testConfigLoadDefaults in tests/MetatagCoreUnitTest.test 
- Test the metatag_config_load_with_defaults() function.
File
- tests/MetatagTestBase.test, line 223 
- A base class for the Metatag tests, provides shared methods.
Class
- MetatagTestBase
- A base class for the Metatag tests, provides shared methods.
Code
public function getTestDefaults() {
  return array(
    // Basic meta tags.
    'title' => array(
      'value' => 'Test altered title',
    ),
    'description' => array(
      'value' => 'Test foo description',
    ),
    'abstract' => array(
      'value' => 'Test foo abstract',
    ),
    // @code
    // 'keywords' => array('value' => ''),
    // @endcode
    // Advanced meta tags.
    // @code
    // 'robots' => array('value' => ''),
    // 'news_keywords' => array('value' => ''),
    // 'standout' => array('value' => ''),
    // 'robots' => array('value' => ''),
    // 'standout' => array('value' => ''),
    // @endcode
    'generator' => array(
      'value' => 'Drupal 7 (https://www.drupal.org)',
    ),
    // @code
    // 'standout' => array('value' => ''),
    // 'image_src' => array('value' => ''),
    // @endcode
    'canonical' => array(
      'value' => '[current-page:url:absolute]',
    ),
    'shortlink' => array(
      'value' => '[current-page:url:unaliased]',
    ),
  );
}