RavenTest.php in Raven: Sentry Integration 8.2
File
tests/src/FunctionalJavascript/RavenTest.php
View source
<?php
namespace Drupal\Tests\raven\FunctionalJavascript;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
class RavenTest extends WebDriverTestBase {
use StringTranslationTrait;
protected $defaultTheme = 'stark';
public static $modules = [
'raven',
];
public function testRavenJavascriptConfig() {
$admin_user = $this
->drupalCreateUser([
'administer site configuration',
'send javascript errors to sentry',
]);
$this
->drupalLogin($admin_user);
$this
->drupalGet('admin/config/development/logging');
$this
->submitForm([
'raven[js][javascript_error_handler]' => TRUE,
], $this
->t('Save configuration'));
}
}