private function MailgunUiPageTest::checkRoutesStatusCode in Mailgun 8
Helper. Checks status codes on admin routes by current user.
1 call to MailgunUiPageTest::checkRoutesStatusCode()
- MailgunUiPageTest::testAdminPages in tests/
src/ Functional/ MailgunUiPageTest.php - Tests admin pages provided by Mailgun.
File
- tests/
src/ Functional/ MailgunUiPageTest.php, line 47
Class
- MailgunUiPageTest
- Tests that all provided admin pages are reachable.
Namespace
Drupal\Tests\mailgun\FunctionalCode
private function checkRoutesStatusCode($status_code) {
foreach ($this->adminPages as $route) {
$this
->drupalGet(Url::fromRoute($route));
$this
->assertSession()
->statusCodeEquals($status_code);
}
}