metatag_dc.test 962 B

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