Skip to content
Snippets Groups Projects
Verified Commit 2d32ea49 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3371937 by yash.rode, Abhijith S, smustgrave, fgm: Theme declaration...

Issue #3371937 by yash.rode, Abhijith S, smustgrave, fgm: Theme declaration and templates mismatch for feed_icon

(cherry picked from commit 01da0fd9)
parent 04fb2d1d
No related branches found
No related tags found
16 merge requests!10602Issue #3438769 by vinmayiswamy, antonnavi, michelle, amateescu: Sub workspace does not clear,!10301Issue #3469309 by mstrelan, smustgrave, moshe weitzman: Use one-time login...,!10187Issue #3487488 by dakwamine: ExtensionMimeTypeGuesser::guessMimeType must support file names with "0" (zero) like foo.0.zip,!9929Issue #3445469 by pooja_sharma, smustgrave: Add additional test coverage for...,!9787Resolve issue 3479427 - bootstrap barrio issue under Windows,!9742Issue #3463908 by catch, quietone: Split OptionsFieldUiTest into two,!9526Issue #3458177 by mondrake, catch, quietone, godotislate, longwave, larowlan,...,!8949Backport .gitlabci.yml changes.,!8738Issue #3424162 by camilledavis, dineshkumarbollu, smustgrave: Claro...,!8704Make greek characters available in ckeditor5,!8533Issue #3446962 by kim.pepper: Remove incorrectly added...,!8517Issue #3443748 by NexusNovaz, smustgrave: Testcase creates false positive,!7445Issue #3440169: When using drupalGet(), provide an associative array for $headers,!6502Draft: Resolve #2938524 "Plach testing issue",!38582585169-10.1.x,!3226Issue #2987537: Custom menu link entity type should not declare "bundle" entity key
Pipeline #171384 passed
Pipeline: drupal

#171437

    Pipeline: drupal

    #171433

      Pipeline: drupal

      #171425

        +6
        ......@@ -2026,7 +2026,7 @@ function drupal_common_theme() {
        'variables' => ['items' => [], 'title' => '', 'list_type' => 'ul', 'wrapper_attributes' => [], 'attributes' => [], 'empty' => NULL, 'context' => []],
        ],
        'feed_icon' => [
        'variables' => ['url' => NULL, 'title' => NULL],
        'variables' => ['url' => NULL, 'title' => NULL, 'attributes' => []],
        ],
        'progress_bar' => [
        'variables' => ['label' => NULL, 'percent' => NULL, 'message' => NULL],
        ......
        ......@@ -99,4 +99,20 @@ public function testFeedIconEscaping() {
        $this->assertEquals('Subscribe to <>&"'', trim(strip_tags($text)), 'feed_icon template escapes reserved HTML characters.');
        }
        /**
        * Tests that the rendered output contains specific attributes.
        */
        public function testAttributeAdded(): void {
        $variables = [
        '#theme' => 'feed_icon',
        '#url' => 'node/add/',
        '#title' => 'testing title',
        '#attributes' => ['title' => 'some title', 'class' => ['some-class']],
        ];
        $rendered_output = (string) \Drupal::service('renderer')->renderRoot($variables);
        // Check if the class 'some-class' is present in the rendered output.
        $this->assertStringContainsString('some-class', $rendered_output, "The class 'some-class' should be present in the rendered output.");
        }
        }
        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