1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- /**
- * @file
- * Tests for the Metatag OpenGraph Products module.
- */
- class MetatagOpenGraphProductsTest extends MetatagTestHelper {
- /**
- * {@inheritdoc}
- */
- public static function getInfo() {
- return array(
- 'name' => 'Metatag OpenGraph products tests',
- 'description' => 'Test the Metatag:OpenGraph Products module.',
- 'group' => 'Metatag',
- );
- }
- /**
- * {@inheritdoc}
- */
- function setUp(array $modules = array()) {
- $modules[] = 'metatag_opengraph_products';
- parent::setUp($modules);
- // Create an admin user and log them in.
- $this->adminUser = $this->createAdminUser();
- $this->drupalLogin($this->adminUser);
- }
- /**
- * Confirm that it's possible to load the main admin page.
- */
- public function testAdminPage() {
- $this->drupalGet('admin/config/search/metatags');
- $this->assertResponse(200);
- // Confirm the page is correct.
- $this->assertText(t('To view a summary of the default meta tags and the inheritance, click on a meta tag type.'));
- }
- }
|