metatag_importer.test 961 B

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