public function CloudFlareAdminSettingsInvalidFormTest::testFormAccess in CloudFlare 8
Test if the form is at its place and has the right permissions.
File
- tests/
src/ Functional/ CloudFlareAdminSettingsInvalidFormTest.php, line 62
Class
- CloudFlareAdminSettingsInvalidFormTest
- Tests \Drupal\purge_ui\Form\CloudFlareAdminSettingsForm.
Namespace
Drupal\Tests\cloudflare\FunctionalCode
public function testFormAccess() {
// @todo troubleshoot why testing the route as an anonymous user
// throws a 500 code for travis CI.
$this
->drupalLogin($this->adminUser);
$this
->drupalGet($this->route);
$this
->assertSession()
->statusCodeEquals(200);
}