LogPageTest.php in Automatic Updates 8
File
tests/src/Functional/LogPageTest.php
View source
<?php
namespace Drupal\Tests\automatic_updates\Functional;
use Drupal\Tests\BrowserTestBase;
class LogPageTest extends BrowserTestBase {
protected $defaultTheme = 'stark';
protected static $modules = [
'views',
'dblog',
'automatic_updates',
];
protected $user;
protected function setUp() {
parent::setUp();
$this->user = $this
->drupalCreateUser([
'access administration pages',
'administer site configuration',
'administer software updates',
]);
$this
->drupalLogin($this->user);
}
public function testLogPageExists() {
$this
->drupalGet('admin/reports/automatic_updates_log');
$this
->assertSession()
->statusCodeEquals(200);
}
}