DashboardLoggingTest.php in Purge 8.3
File
modules/purge_ui/tests/src/Functional/DashboardLoggingTest.php
View source
<?php
namespace Drupal\Tests\purge_ui\Functional;
use Drupal\Core\Url;
class DashboardLoggingTest extends DashboardTestBase {
public function testLoggingSection() : void {
$this
->drupalLogin($this->adminUser);
$this
->drupalGet($this->route);
$this
->assertSession()
->responseContains('Logging');
$this
->assertSession()
->responseContains('Configure logging behavior');
$this
->assertSession()
->linkByHrefExists(Url::fromRoute('purge_ui.logging_config_form')
->toString());
}
}