public function AdminUiTest::testSettingsPage in New Relic 2.x
Same name and namespace in other branches
- 2.0.x tests/src/Functional/AdminUiTest.php \Drupal\Tests\new_relic_rpm\Functional\AdminUiTest::testSettingsPage()
Tests the settings page elements.
File
- tests/
src/ Functional/ AdminUiTest.php, line 56
Class
- AdminUiTest
- Tests admin UI.
Namespace
Drupal\Tests\new_relic_rpm\FunctionalCode
public function testSettingsPage() {
$this
->drupalGet('/admin/config/development/new-relic');
$this->assert
->statusCodeEquals(200);
// General.
$this->page
->hasField('api_key');
// Transactions.
$this->page
->hasField('track_drush');
$this->page
->hasField('track_cron');
$this->page
->hasField('ignore_roles[]');
$this->page
->hasField('ignore_urls');
$this->page
->hasField('bg_urls');
$this->page
->hasField('exclusive_urls');
// Error analytics.
$this->page
->hasField('watchdog_severities[]');
$this->page
->hasField('override_exception_handler');
// Deployment.
$this->page
->hasField('module_deployment');
$this->page
->hasField('config_import');
// Insight.
$this->page
->hasField('views_log_slow');
$this->page
->hasField('views_log_threshold');
}