MetatagGooglePlusTagsTest.php in Metatag 8
File
metatag_google_plus/tests/src/Functional/MetatagGooglePlusTagsTest.php
View source
<?php
namespace Drupal\Tests\metatag_google_plus\Functional;
use Drupal\Tests\metatag\Functional\MetatagTagsTestBase;
class MetatagGooglePlusTagsTest extends MetatagTagsTestBase {
protected static $modules = [
'metatag_google_plus',
];
protected $tags = [
'google_plus_author',
'google_plus_description',
'google_plus_image',
'google_plus_name',
'google_plus_publisher',
];
protected $testNameAttribute = 'itemprop';
protected function getTestTagName($tag_name) {
return str_replace('google_plus_', '', $tag_name);
}
protected function googlePlusAuthorTestOutputXpath() {
return "//link[@rel='author']";
}
protected function googlePlusAuthorTestValueAttribute() {
return 'href';
}
protected function googlePlusPublisherTestOutputXpath() {
return "//link[@rel='publisher']";
}
protected function googlePlusPublisherTestValueAttribute() {
return 'href';
}
}