You are here

public function EnablePhoneInternationalTest::testLoad in International Phone 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/EnablePhoneInternationalTest.php \Drupal\Tests\phone_international\Functional\EnablePhoneInternationalTest::testLoad()
  2. 8 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);
}