metatag_importer.test 1021 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * @file
  4. * Tests for the Metatag Importer module.
  5. */
  6. /**
  7. * Tests for the Metatag Importer module.
  8. */
  9. class MetatagImporterTest extends MetatagTestHelper {
  10. /**
  11. * {@inheritdoc}
  12. */
  13. public static function getInfo() {
  14. return array(
  15. 'name' => 'Metatag Importer tests',
  16. 'description' => 'Test the Metatag:Importer module.',
  17. 'group' => 'Metatag',
  18. );
  19. }
  20. /**
  21. * {@inheritdoc}
  22. */
  23. function setUp(array $modules = array()) {
  24. $modules[] = 'metatag_importer';
  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 importer admin page.
  32. */
  33. public function testAdminPage() {
  34. $this->drupalGet('admin/config/search/metatags/importer');
  35. $this->assertResponse(200);
  36. // Confirm the page is loaded.
  37. $this->assertText(t('Use the links above to import data from another module.'));
  38. }
  39. }