You are here

public function BasicTestCaseBase::testTheSiteStillWorks in Accelerated Mobile Pages (AMP) 8.3

Make sure the site still works. For now just check the front page.

File

tests/src/Functional/BasicTestCaseBase.php, line 48

Class

BasicTestCaseBase
Test basic functionality of AMP Modules.

Namespace

Drupal\Tests\amp\Functional

Code

public function testTheSiteStillWorks() {

  // Load the front page.
  $this
    ->drupalGet('<front>');

  // Confirm that the site didn't throw a server error or something else.
  $this
    ->assertSession()
    ->statusCodeEquals(200);

  // Confirm that the front page contains the standard text.
  $this
    ->assertText('Welcome to Drupal');
}