backup_migrate-5.0.0-rc2/tests/src/Functional/BackupMigrateEnablingTest.php
tests/src/Functional/BackupMigrateEnablingTest.php
<?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}
*/
protected 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);
}
}
