Skip to content
Snippets Groups Projects
Commit 19bd13e5 authored by Nikolay Shapovalov's avatar Nikolay Shapovalov Committed by Sascha Grossenbacher
Browse files

Issue #3413625: Fix failled test on Drupal 10

parent a5ebba34
No related branches found
No related tags found
1 merge request!61Issue #3413625: fix failed tests
Pipeline #133592 passed with warnings
......@@ -50,7 +50,8 @@ include:
################
# variables:
# SKIP_ESLINT: '1'
variables:
OPT_IN_TEST_PREVIOUS_MINOR: '1'
###################################################################################
#
......
......@@ -156,7 +156,7 @@ class TokenMenuTest extends TokenTestBase {
'menu_parent' => 'main-menu:',
];
$this->drupalGet('admin/structure/types/manage/page');
$this->submitForm($edit, 'Save content type');
$this->submitForm($edit, 'Save');
// Use a menu-link token in the body.
$this->drupalGet('node/add/page');
......
......@@ -26,7 +26,12 @@ class HelpPageTest extends TokenTestBase {
public function setUp(): void {
parent::setUp();
$this->account = $this->drupalCreateUser(['access administration pages']);
// On Drupal 10.2 there is new permission to access help pages.
$permissions = ['access help pages'];
if (version_compare(\Drupal::VERSION, '10.2', '<')) {
$permissions = ['access administration pages'];
}
$this->account = $this->drupalCreateUser($permissions);
$this->drupalLogin($this->account);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment