1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- /**
- * @file
- * Tests for the Metatag Mobile module.
- */
- class MetatagMobileTest extends MetatagTestHelper {
- /**
- * {@inheritdoc}
- */
- public static function getInfo() {
- return array(
- 'name' => 'Metatag Mobile tests',
- 'description' => 'Test the Metatag:Mobile module.',
- 'group' => 'Metatag',
- );
- }
- /**
- * {@inheritdoc}
- */
- function setUp(array $modules = array()) {
- $modules[] = 'metatag_mobile';
- 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.'));
- }
- }
|