Skip to content
Snippets Groups Projects
Commit 8f6a0cd1 authored by Project Update Bot's avatar Project Update Bot Committed by Ilcho Vuchkov
Browse files

Issue #3329322 by Project Update Bot, vuil: Automated Drupal 10 compatibility fixes

parent fde2b61d
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ class JuicerSimpleTest extends BrowserTestBase {
*
* @var array
*/
static public $modules = ['juicerio'];
protected static $modules = ['juicerio'];
/**
* The installation profile to use with this test.
......@@ -58,10 +58,10 @@ class JuicerSimpleTest extends BrowserTestBase {
* Enable Juicer and see if it can return its main
* page. Should return a 403.
*/
public function testJuicerAnonConfigFormMenu() {
public function testJuicerAnonConfigFormMenu(): void {
// Verify that anonymous cannot access the config page.
$this->drupalGet('admin/config/services/juicerio');
$this->assertResponse(403);
$this->assertSession()->statusCodeEquals(403);
}
/**
......@@ -70,7 +70,7 @@ class JuicerSimpleTest extends BrowserTestBase {
* Enable Juicer and see if it can successfully return its main
* page.
*/
public function testJuicerConfigFormMenu() {
public function testJuicerConfigFormMenu(): void {
// Verify that authenticated users with correct perms can access
// the config page.
// Create a user.
......@@ -79,7 +79,7 @@ class JuicerSimpleTest extends BrowserTestBase {
$this->drupalLogin($test_user);
$this->drupalGet('admin/config/services/juicerio');
$this->assertResponse(200);
$this->assertSession()->statusCodeEquals(200);
}
}
......@@ -22,7 +22,7 @@ class LoadTest extends BrowserTestBase {
*
* @var array
*/
public static $modules = ['juicerio'];
protected static $modules = ['juicerio'];
/**
* A user with permission to administer site configuration.
......@@ -34,7 +34,7 @@ class LoadTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->user = $this->drupalCreateUser(['administer site configuration']);
$this->drupalLogin($this->user);
......@@ -43,7 +43,7 @@ class LoadTest extends BrowserTestBase {
/**
* Tests that the home page loads with a 200 response.
*/
public function testLoad() {
public function testLoad(): void {
$this->drupalGet(Url::fromRoute('<front>'));
$this->assertSession()->statusCodeEquals(200);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment