EnablePhoneInternationalTest.php in International Phone 3.x
File
tests/src/Functional/EnablePhoneInternationalTest.php
View source
<?php
namespace Drupal\Tests\phone_international\Functional;
use Drupal\Core\Url;
use Drupal\Tests\BrowserTestBase;
class EnablePhoneInternationalTest extends BrowserTestBase {
public static $modules = [
'phone_international',
];
protected $defaultTheme = 'stark';
protected $user;
public function testLoad() {
$this
->drupalGet(Url::fromRoute('<front>'));
$this
->assertSession()
->statusCodeEquals(200);
}
protected function setUp() : void {
parent::setUp();
$this->user = $this
->drupalCreateUser([
'administer site configuration',
]);
$this
->drupalLogin($this->user);
}
}