BackupMigrateBasicsTest.test 708 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * @file
  4. * Tests for different parts of the Backup Migrate system.
  5. */
  6. /**
  7. * Test that the front page still loads.
  8. */
  9. class BackupMigrateBasicsTest extends BackupMigrateBase {
  10. /**
  11. * Define this test class.
  12. */
  13. public static function getInfo() {
  14. return array(
  15. 'name' => 'Basic test',
  16. 'description' => 'Ensure that the site was not blown up when the Backup & Migrate module was enabled.',
  17. 'group' => 'backup_migrate',
  18. );
  19. }
  20. /**
  21. * Verify the front page still loads.
  22. */
  23. public function testFrontPage() {
  24. $this->drupalGet('<front>');
  25. $this->assertResponse(200);
  26. $this->assertText(t('No front page content has been created yet.'));
  27. }
  28. }