metatag_dc.test 953 B

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