You are here

public function CloudFlareAdminSettingsFormTest::setUp in CloudFlare 8

Setup the test.

Overrides BrowserTestBase::setUp

File

tests/src/Functional/CloudFlareAdminSettingsFormTest.php, line 35

Class

CloudFlareAdminSettingsFormTest
Tests \Drupal\purge_ui\Form\CloudFlareAdminSettingsForm.

Namespace

Drupal\Tests\cloudflare\Functional

Code

public function setUp() {
  parent::setUp();
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer cloudflare',
  ]);
  $this->route = Url::fromRoute('cloudflare.admin_settings_form');
  $this
    ->drupalLogin($this->adminUser);
  ZoneMock::mockAssertValidCredentials(TRUE);
  ComposerDependenciesCheckMock::mockComposerDependenciesMet(TRUE);
}