diff --git a/core/modules/system/src/Tests/Theme/FunctionsTest.php b/core/modules/system/src/Tests/Theme/FunctionsTest.php
index fa5a2ac..429d168 100644
--- a/core/modules/system/src/Tests/Theme/FunctionsTest.php
+++ b/core/modules/system/src/Tests/Theme/FunctionsTest.php
@@ -236,16 +236,15 @@ function testLinks() {
// Verify that passing an array as heading works (core support).
$variables['heading'] = array(
'text' => 'Links heading',
- 'level' => 'h3',
'attributes' => array('class' => array('heading')),
);
- $expected_heading = '
Links heading
';
+ $expected_heading = 'Links heading
';
$expected = $expected_heading . $expected_links;
$this->assertThemeOutput('links', $variables, $expected);
// Verify that passing attributes for the heading works.
- $variables['heading'] = array('text' => 'Links heading', 'level' => 'h3', 'attributes' => array('id' => 'heading'));
- $expected_heading = 'Links heading
';
+ $variables['heading'] = array('text' => 'Links heading', 'attributes' => array('id' => 'heading'));
+ $expected_heading = 'Links heading
';
$expected = $expected_heading . $expected_links;
$this->assertThemeOutput('links', $variables, $expected);
@@ -357,16 +356,15 @@ function testIndexedKeyedLinks() {
// Verify that passing an array as heading works (core support).
$variables['heading'] = [
'text' => 'Links heading',
- 'level' => 'h3',
'attributes' => ['class' => ['heading']],
];
- $expected_heading = 'Links heading
';
+ $expected_heading = 'Links heading
';
$expected = $expected_heading . $expected_links;
$this->assertThemeOutput('links', $variables, $expected);
// Verify that passing attributes for the heading works.
- $variables['heading'] = ['text' => 'Links heading', 'level' => 'h3', 'attributes' => ['id' => 'heading']];
- $expected_heading = 'Links heading
';
+ $variables['heading'] = ['text' => 'Links heading', 'attributes' => ['id' => 'heading']];
+ $expected_heading = 'Links heading
';
$expected = $expected_heading . $expected_links;
$this->assertThemeOutput('links', $variables, $expected);