Skip to content
Snippets Groups Projects

Issue #3313630: Automatic Updates help has the wrong route name and errors

1 file
+ 11
3
Compare changes
  • Side-by-side
  • Inline
@@ -4,6 +4,9 @@ namespace Drupal\Tests\automatic_updates\Functional;
@@ -4,6 +4,9 @@ namespace Drupal\Tests\automatic_updates\Functional;
use Drupal\Tests\BrowserTestBase;
use Drupal\Tests\BrowserTestBase;
 
/**
 
* @group automatic_updates
 
*/
class HelpPageTest extends BrowserTestBase {
class HelpPageTest extends BrowserTestBase {
/**
/**
@@ -16,16 +19,21 @@ class HelpPageTest extends BrowserTestBase {
@@ -16,16 +19,21 @@ class HelpPageTest extends BrowserTestBase {
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
protected $defaultTheme = 'stark';
protected $defaultTheme = 'stark';
 
/**
 
* Tests that the help page for Automatic Updates loads correctly.
 
*/
public function testHelpPage(): void {
public function testHelpPage(): void {
$user = $this->createUser([
$user = $this->createUser([
'access administration pages',
'access administration pages',
]);
]);
$this->drupalLogin($user);
$this->drupalLogin($user);
$this->drupalGet('/admin/help/automatic_updates');
$this->drupalGet('/admin/help/automatic_updates');
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->pageTextContains('Automatic Updates');
$assert_session = $this->assertSession();
 
$assert_session->statusCodeEquals(200);
 
$assert_session->pageTextContains('Automatic Updates');
}
}
}
}
Loading