You are here

public function EnablePhoneInternationalTest::testLoad in International Phone 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/EnablePhoneInternationalTest.php \Drupal\Tests\phone_international\Functional\EnablePhoneInternationalTest::testLoad()
  2. 3.x tests/src/Functional/EnablePhoneInternationalTest.php \Drupal\Tests\phone_international\Functional\EnablePhoneInternationalTest::testLoad()

Tests that the home page loads with a 200 response.

File

tests/src/Functional/EnablePhoneInternationalTest.php, line 37

Class

EnablePhoneInternationalTest
Simple test to ensure that main page loads with module enabled.

Namespace

Drupal\Tests\phone_international\Functional

Code

public function testLoad() {
  $this
    ->drupalGet(Url::fromRoute('<front>'));
  $this
    ->assertSession()
    ->statusCodeEquals(200);
}