AutofloatTest.php in AutoFloat 8
File
tests/src/Functional/AutofloatTest.php
View source
<?php
namespace Drupal\Tests\autofloat\Functional;
use Drupal\Core\Url;
use Drupal\Tests\BrowserTestBase;
class AutofloatTest extends BrowserTestBase {
protected $defaultTheme = 'stable';
public static $modules = [
'autofloat',
];
protected $user;
protected function setUp() : void {
parent::setUp();
$this->user = $this
->drupalCreateUser([
'administer site configuration',
]);
$this
->drupalLogin($this->user);
}
public function testLoad() {
$this
->drupalGet(Url::fromRoute('<front>'));
$this
->assertSession()
->statusCodeEquals(200);
}
}
Classes
Name |
Description |
AutofloatTest |
Simple test to ensure that main page loads with module enabled. |