metatag_dc_advanced.test 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * @file
  4. * Tests for the Metatag DC Advanced module.
  5. */
  6. /**
  7. * Tests for the Metatag DC Advanced module.
  8. */
  9. class MetatagDcAdvancedTest extends MetatagTestHelper {
  10. /**
  11. * {@inheritdoc}
  12. */
  13. public static function getInfo() {
  14. return array(
  15. 'name' => 'Metatag DC Advanced tests',
  16. 'description' => 'Test the Metatag:DC Advanced module.',
  17. 'group' => 'Metatag',
  18. );
  19. }
  20. /**
  21. * {@inheritdoc}
  22. */
  23. function setUp(array $modules = array()) {
  24. $modules[] = 'metatag_dc_advanced';
  25. parent::setUp($modules);
  26. // Create an admin user and log them in.
  27. $this->adminUser = $this->createAdminUser();
  28. $this->drupalLogin($this->adminUser);
  29. }
  30. /**
  31. * Confirm that it's possible to load the main admin page.
  32. */
  33. public function testAdminPage() {
  34. $this->drupalGet('admin/config/search/metatags');
  35. $this->assertResponse(200);
  36. // Confirm the page is correct.
  37. $this->assertText(t('To view a summary of the default meta tags and the inheritance, click on a meta tag type.'));
  38. }
  39. }