Skip to content
Snippets Groups Projects
Commit 4752eda0 authored by Project Update Bot's avatar Project Update Bot Committed by Kristen Pol
Browse files

Issue #3298024 by Project Update Bot, ameymudras, shamir.vs, Kristen Pol,...

Issue #3298024 by Project Update Bot, ameymudras, shamir.vs, Kristen Pol, pandaski: Automated Drupal 10 compatibility fixes
parent 641c5cb9
No related branches found
No related tags found
No related merge requests found
{
"name": "drupal/securitytxt",
"description": "Provides a security.txt file for your site.",
"type": "drupal-module",
"license": "GPL-2.0+",
"minimum-stability": "dev",
"homepage": "https://www.drupal.org/project/securitytxt",
"support": {
"issues": "https://www.drupal.org/project/issues/securitytxt?categories=All",
"source": "http://cgit.drupalcode.org/securitytxt"
},
"require": {
"drupal/core": "^9.1 || ^10.0"
}
}
......@@ -2,6 +2,5 @@ name: Security.txt
type: module
description: 'Provides a security.txt file for your site.'
package: Security
core: '8.x'
core_version_requirement: ^8 || ^9
core_version_requirement: ^9.1 || ^10
configure: securitytxt.configure
......@@ -17,7 +17,7 @@ abstract class SecuritytxtBaseTest extends BrowserTestBase {
* @var array
* Modules which should be enabled by default.
*/
public static $modules = ['securitytxt'];
protected static $modules = ['securitytxt'];
/**
* User with no permissions.
......@@ -50,7 +50,7 @@ abstract class SecuritytxtBaseTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
protected function setUp(): void {
parent::setUp();
$this->authenticatedUser = $this->drupalCreateUser([]);
......@@ -91,7 +91,8 @@ abstract class SecuritytxtBaseTest extends BrowserTestBase {
$path = 'admin/config/system/securitytxt';
$submit = 'Save configuration';
$options = [];
$this->drupalPostForm($path, $edit, $submit, $options);
$this->drupalGet($path, $options);
$this->submitForm($edit, $submit);
}
/**
......@@ -105,7 +106,8 @@ abstract class SecuritytxtBaseTest extends BrowserTestBase {
$path = 'admin/config/system/securitytxt/sign';
$submit = 'Save configuration';
$options = [];
$this->drupalPostForm($path, $edit, $submit, $options);
$this->drupalGet($path, $options);
$this->submitForm($edit, $submit);
}
/**
......
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