You are here

BackupMigrateEnablingTest.php in Backup and Migrate 5.0.x

Same filename and directory in other branches
  1. 8.4 tests/src/Functional/BackupMigrateEnablingTest.php

File

tests/src/Functional/BackupMigrateEnablingTest.php
View source
<?php

namespace Drupal\Tests\backup_migrate\Functional;

use Drupal\Tests\BrowserTestBase;

/**
 * Checks if module enabling doesn't break the site.
 *
 * @group backup_migrate
 */
class BackupMigrateEnablingTest extends BrowserTestBase {

  /**
   * {@inheritdoc}
   */
  public static $modules = [
    'backup_migrate',
  ];

  /**
   * {@inheritdoc}
   */
  protected $strictConfigSchema = FALSE;

  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';

  /**
   * Tests if site opens with no errors.
   */
  public function testEnabling() {
    $this
      ->drupalGet('');
    $this
      ->assertSession()
      ->statusCodeEquals(200);
  }

}

Classes

Namesort descending Description
BackupMigrateEnablingTest Checks if module enabling doesn't break the site.